当前位置:网站首页>Unity editor expansion - the design idea of imgui
Unity editor expansion - the design idea of imgui
2022-07-03 08:26:00 【T.D.C】
IMGUI explain
- Full name Immediate Mode GUI
- Of this system ui Control has no state , Every time you update the drawing, the window transfers the data object to the control , Then the control directly returns the new value to update the data object
- Scope of application
- Making an editor
- In game tool type ui, such as Game Manager Functional ui
features
- No state
- Weak support for animation
Programming paradigm
// For example, there is a complex control , This control accepts input and returns the output value
class DataModel{
...
}
class XXEditorWindow{
DataModel dataModel = new DataModel()
void OnGUI(){
DataModel = GUI_CustomControl(dataModel)
}
DataModel GUI_CustomControl(DataModel dataModel){
// process input, layout, show information, setup DataModel
...
return dataModel
}
}
Reference material
- https://caseymuratori.com/blog_0001
- https://github.com/ocornut/imgui
边栏推荐
- 数据库应用技术课程设计之商城管理系统
- Some understandings of 3dfiles
- the installer has encountered an unexpected error installing this package
- LinkList
- 【更新中】微信小程序学习笔记_3
- Mutual call between Lua and C #
- CLion-Toolchains are not configured Configure Disable profile问题解决
- Puhua PLM empowers the whole scene product lifecycle management and helps the enterprise digital transformation of the main line of products
- Unity one click AssetBundle
- [linear table] basic operation of bidirectional linked list specify node exchange
猜你喜欢

OpenGL learning notes

Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)

Mxone Pro adaptive 2.0 film and television template watermelon video theme apple cmsv10 template

About Wireshark's unsuccessful installation of npcap

Explain sizeof, strlen, pointer, array and other combination questions in detail

ArrayList

Solution détaillée de toutes les formules de fonction de transfert (fonction d'activation) du réseau neuronal MATLAB
![[cloud native] introduction and use of feign of microservices](/img/39/05cf7673155954c90e75a8a2eecd96.jpg)
[cloud native] introduction and use of feign of microservices

Base64和Base64URL

Jupyter remote server configuration and server startup
随机推荐
图像处理8-CNN图像分类
C language - Introduction - essence Edition - take you into programming (I)
Jupyter remote server configuration and server startup
Osgearth north arrow display
796 · 开锁
Use of ue5 QRcode plug-in
Notes on understanding applets 2022/7/3
Dealing with duplicate data in Excel with xlwings
A tunnel to all ports of the server
About the problem that the editor and the white screen of the login interface cannot be found after the location of unityhub is changed
Markdown directory generation
【更新中】微信小程序学习笔记_3
Intersectionpicker in osgearth
【云原生】微服务之Feign的介绍与使用
Sequence of map implementation classes
Mxone Pro adaptive 2.0 film and television template watermelon video theme apple cmsv10 template
Introduction to hexadecimal coding
数据库应用技术课程设计之商城管理系统
Visual Studio (VS) shortcut keys
Unity4.3.1 engine source code compilation process