当前位置:网站首页>Synergetic process
Synergetic process
2022-06-23 12:39:00 【First wife ash yuanai】
The teacher defined : Start another logical processing while the main thread is running , To assist in the execution of current procedures .
The official definition of : Xiecheng is a branch executive , Encounter conditions (yield return sentence ) Will hang up , Until the condition is met, it will be waked up and continue to execute the following code .
Points of attention :
1.Unity At every frame (Frame) Will deal with the coroutines on the object .Unity Mainly in the Update Post processing process ( Check whether the conditions of the cooperation process are met ), But there are also exceptions :
2. Synergetic process Update() It's the same , All are Unity The function that each frame pair will handle ( If any ). If MonoBehaviour Is active (active) State and yield Satisfy the condition of ,
Will execute the following code of the coroutine method . You can also find : If you call a coroutine in the early stage of an object , The collaboration will run immediately to the first yield return Statement place , If it is yield return null , Will be awakened again at the same frame .
3.Unity Of C# The return value of a coroutine in the code is usually IEnumerator( iterator ) type ,IEnumerator There are two ways to interface , Namely Current and MoveNext. We can simply think that :
A coroutine is a function that returns an iterator , At first the iterator's Current Point to the beginning of the function , Every time MoveNext,Current Point to the next yield return The value returned . The iterator method runs to yield return
When the sentence is , Will return a expression Expression and keep the current position in the code . The next time the iterator function is called, execution restarts from that location .
Unity What you do at each frame is : call coroutines ( iterator )MoveNext() Method , If you return true , Just continue from the current position .
边栏推荐
- Operation of 2022 tool fitter (elementary) examination practice question simulation examination platform
- mysql中innodb下的redo log什么时候开始执行check point落盘的?
- 面试题:举例说一下工作中你的接口测试是怎么做的?
- ROS2知识(6):坐标对象TF原理和实践
- 「开发者说」钉钉连接器+OA审批实现学校学生假勤场景数字化
- Excel-vba quick start (I. macros, VBA, procedures, types and variables, functions)
- Playing in Singapore in the hot summer: an inventory of indoor attractions and good places for night trips
- 跟循泰国国内游宣传曲MV,像本地人一样游曼谷
- If there is a problem with minority browsers, do you need to do a compatibility test?
- Solve "thread 1:" -[*.collectionnormalcellview isselected]: unrecognized selector sent to instance 0x7F "
猜你喜欢

How to test the third-party payment interface?

C#部分——值类型和引用类型

Stimulsoft Ultimate Reports 2022.3.1

Shell process control - 39. Special process control statements

ROS knowledge: reading point cloud data files

Qt 知识:使用 QGraphicsPixmapItem类

Wallys/DR6018-S/ 802.11AX MU-MIMO OFDMA / 2* GE PORTS/WIFI 6e / BAND DUAL CONCURRENT

Localization information | aikesheng and China kefangde complete product compatibility and mutual certification

sql增加表记录的重复问题。
![[introduction to UVM== > episode_7] ~ sequence, sequence item, sequencer, driver](/img/75/cd374bab8da2c133a0207a2472581f.png)
[introduction to UVM== > episode_7] ~ sequence, sequence item, sequencer, driver
随机推荐
详解PyQt5信号与槽的关系
2022 construction worker - Equipment direction - post skill (construction worker) test question simulation test platform operation
手机开户有什么风险吗?开户安全吗?
冷板式、浸没式、喷淋式液冷散热能否引领高性能计算发展?
[basic knowledge] - data bit width converter
mysql中innodb下的redo log什么时候开始执行check point落盘的?
网络基础和框架
Machine Learning Series 5: distance space (1)
A bug development means that the user will not operate like this, and there is no need to repair it. How should testers respond?
DuPont analysis: what is the investment value of Anyang Iron and Steel Co., Ltd?
Qt知识:视图框架QGraphicsWidget详解
"Developer talk" nail connector +oa approval to realize digitalization of school students' leave and work scenes
An idea of using keep alive to cache data in vue3 form pages
How should enterprises conduct efficient IT operation and maintenance management?
CSS magic nugget mug; Optimization of CK, ES and redisearch schemes in ten million level data query; Why does module circular dependency not lead to dead loop Sauced afternoon tea issue 13
QT knowledge: using the qgraphicspixmapitem class
ROS2知识(1):开始实践机器人
CRMEB知识付费如何二开阿里云短信功能
C#部分——值类型和引用类型
项目测试一半,需求要变更,测试人员怎么办?