当前位置:网站首页>Execution order of scripts bound to game objects
Execution order of scripts bound to game objects
2022-07-06 04:05:00 【A plum in fall】
List of articles
- 1. Can only one script be bound to a game object ?
- 2. If a game object can bind multiple scripts , So which script executes first ? Which is the last execution ?
- 3. If there are multiple game objects in the scene , Script files are bound to multiple game objects , What is the order of execution ?
- summary
1. Can only one script be bound to a game object ?
No , A game object can be bound to multiple scripts .
2. If a game object can bind multiple scripts , So which script executes first ? Which is the last execution ?
First drag the script file onto the game object , Finally, execute ;
Finally, drag to the script file on the game object , The first to perform .
3. If there are multiple game objects in the scene , Script files are bound to multiple game objects , What is the order of execution ?
No matter how many objects there are in the scene , Several scripts are bound to the object
What really determines the order of script execution is : Order of dragging
Drag the script onto the object first , Finally, execute ;
Finally, drag the script onto the object , The first to perform .
summary
Under normal circumstances , The execution order of the script is based on the order of dragging the script to execute the first drag to the object and then execute , After dragging, execute first .
however , There are many script files in actual items , And developers cannot always remember the order of dragging , At this time , You can use interface operations to manage the execution sequence of scripts .
Click on any script file ,Inspector The upper right corner of , There is one order Button
Click on button , choice “+“ No. icon all script files under the current project , Click whichever you need .
Each script item added is followed by a number , The smaller the number is. , Indicates that the script will execute first .
After setting the execution order of the script through the interface , Re execution . Will find , It is based on the order set in the interface .
边栏推荐
- 脚本生命周期
- C#(三十)之C#comboBox ListView treeView
- Prime Protocol宣布在Moonbeam上的跨链互连应用程序
- lora网关以太网传输
- [001] [stm32] how to download STM32 original factory data
- 2/10 parallel search set +bfs+dfs+ shortest path +spfa queue optimization
- 【PSO】基于PSO粒子群优化的物料点货物运输成本最低值计算matlab仿真,包括运输费用、代理人转换费用、运输方式转化费用和时间惩罚费用
- 51nod 1130 n factorial length V2 (Stirling approximation)
- KS003基于JSP和Servlet实现的商城系统
- Custom event of C (31)
猜你喜欢
Ks003 mall system based on JSP and Servlet
【leetcode】1189. Maximum number of "balloons"
How does technology have the ability to solve problems perfectly
Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes
Cf464e the classic problem [shortest path, chairman tree]
自动化测试的好处
C mouse event and keyboard event of C (XXVIII)
[Zhao Yuqiang] deploy kubernetes cluster with binary package
WPF effect Article 191 box selection listbox
DM8 backup set deletion
随机推荐
绑定在游戏对象上的脚本的执行顺序
Prime Protocol宣布在Moonbeam上的跨链互连应用程序
自动化测试的好处
Proof of Stirling formula
AcWing 243. A simple integer problem 2 (tree array interval modification interval query)
[FPGA tutorial case 12] design and implementation of complex multiplier based on vivado core
【FPGA教程案例11】基于vivado核的除法器设计与实现
Benefits of automated testing
Ybtoj coloring plan [tree chain dissection, segment tree, tarjan]
简易博客系统
The global and Chinese market of negative pressure wound therapy unit (npwtu) 2022-2028: Research Report on technology, participants, trends, market size and share
Redis (replicate dictionary server) cache
mysql关于自增长增长问题
Record the pit of NETCORE's memory surge
【按键消抖】基于FPGA的按键消抖模块开发
Python book learning notes - Chapter 09 section 01 create and use classes
C (thirty) C combobox listview TreeView
Prime protocol announces cross chain interconnection applications on moonbeam
2/11 matrix fast power +dp+ bisection
C#(二十七)之C#窗体应用