Comments (6)
If you use UIBase.AddEventListener
, then OnRefesh will be called when this event is called, and you can also put UI update logic in this method and initiative call it.:)
from myunityframework.
OnInit ()
is called when the UI is created. This method is called only once during the life of the UI
OnOpen ()
is called when the UI is opened, for performance reasons, we can create a UI and wait until the right time to open it,
OnClose (),
called when the UI is closed
OnHide ()
is called when the UI is hidden,
OnShow ()
Called when the UI is redisplaying, as opposed to OnHide ()
We can override the Show()
method and Hide()
method of UIBase, the default is to change the active
from myunityframework.
AddOnClickListener will be automatically removed in the OnClose.
The reason for this is
- Simplify the code.
- Avoid clicking on the UI when close animation
ps: OpenUI by IApplicationStatus also the same
from myunityframework.
Hi @GaoKaiHaHa
Aha i understand now. How about OnRefresh? Is this method for updating, refresh data or logic when user come back to ui window from other window? Can you give me an example how to use it?
Thank so much!
from myunityframework.
@GaoKaiHaHa Can you explain more about OnRefesh and how to use it (some example when to use it) in the real game?
from myunityframework.
Hi @GaoKaiHaHa
Now I completely understand it! Thank so much!
Going to ask another question about Popup he he
from myunityframework.
Related Issues (20)
- 大佬,请问您这套框架支持ProtolBuffer 或者 sproto吗? HOT 1
- sdk报错 HOT 1
- LuaBinder缺失 HOT 1
- 麻烦支持一下Unity2018 HOT 1
- unity2018.4.3f报错Multiple precompiled assemblies with the same name CString.dll included for the current platform. Only one assembly with the same name is allowed per platform. HOT 2
- 打开项目 运行main场景失败 报错 HOT 5
- 求一个简单的使用该框架做出的demo HOT 2
- 打开脚本找不到这个方法是怎么肥事
- unity数据
- 请教
- 新手引导相关 HOT 1
- 可以加上命名空间防止与其他第三方模块冲突
- 可以加上命名空间防止与其他第三方模块冲突
- 请问,lua用txt,作者怎么解决断点调试的问题 HOT 1
- 你好,我每次打开脚本都会提示 没有找到sln的报错请问怎么解决 HOT 1
- 生成wrap的时候报错,这要怎么解决呢
- 事件只获取而没有回池
- 2020.3.34打开报错 HOT 3
- 不再维护了么? HOT 1
- 请问报错缺少HDJ怎么解决呀 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myunityframework.