当前位置:网站首页>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
边栏推荐
猜你喜欢
Abstract classes and interfaces
Easy touch plug-in
Basic operation and process control 2
the installer has encountered an unexpected error installing this package
简易入手《SOM神经网络》的本质与原理
Osgearth target selection
Image processing 8-cnn image classification
Notes on understanding applets 2022/7/3
jupyter远程服务器配置以及服务器开机自启
【云原生】微服务之Feign的介绍与使用
随机推荐
A tunnel to all ports of the server
数据的存储
[updating] wechat applet learning notes_ three
Shader foundation 01
matlab神經網絡所有傳遞函數(激活函數)公式詳解
C course design employee information management system
Some understandings of 3dfiles
Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)
php-fpm软件的安装+openresty高速缓存搭建
Golang json格式和结构体相互转换
Why can void * be a general pointer
Introduction to hexadecimal coding
[cloud native] introduction and use of feign of microservices
Un système de gestion de centre commercial pour la conception de cours de technologie d'application de base de données
Basic operation and process control 2
[public key cryptography] ECC elliptic cryptosystem (implementing ElGamal encryption method)
Unity one click AssetBundle
Maxcompute string splitting function -split_ PART
Intersectionpicker in osgearth
Creation and content of mapnode -- osgearth rendering engine series (2)