当前位置:网站首页>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 .
边栏推荐
- Stack and queue
- Python book learning notes - Chapter 09 section 01 create and use classes
- 51nod 1130 n factorial length V2 (Stirling approximation)
- [FPGA tutorial case 12] design and implementation of complex multiplier based on vivado core
- Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
- Hashcode and equals
- Simple blog system
- IDEA编译JSP页面生成的class文件路径
- C language -- structs, unions, enumerations, and custom types
- DM8 archive log file manual switching
猜你喜欢
[adjustable delay network] development of FPGA based adjustable delay network system Verilog
【FPGA教程案例11】基于vivado核的除法器设计与实现
Serial port-rs232-rs485-ttl
What is the difference between gateway address and IP address in tcp/ip protocol?
Benefits of automated testing
C language -- structs, unions, enumerations, and custom types
Facebook等大廠超十億用戶數據遭泄露,早該關注DID了
登录mysql输入密码时报错,ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO/YES
Network security - Security Service Engineer - detailed summary of skill manual (it is recommended to learn and collect)
Esp32 (based on Arduino) connects the mqtt server of emqx to upload information and command control
随机推荐
Fundamentals of SQL database operation
Proof of Stirling formula
/usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
Esp32 (based on Arduino) connects the mqtt server of emqx to upload information and command control
How to execute an SQL statement in MySQL
In Net 6 CS more concise method
How to modify field constraints (type, default, null, etc.) in a table
【FPGA教程案例12】基于vivado核的复数乘法器设计与实现
[FPGA tutorial case 11] design and implementation of divider based on vivado core
Global and Chinese markets for patent hole oval devices 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of aircraft anti icing and rain protection systems 2022-2028: Research Report on technology, participants, trends, market size and share
C#(二十九)之C#listBox checkedlistbox imagelist
1291_Xshell日志中增加时间戳的功能
mysql关于自增长增长问题
Global and Chinese markets for endoscopic drying storage cabinets 2022-2028: Research Report on technology, participants, trends, market size and share
lora网关以太网传输
Pandora IOT development board learning (HAL Library) - Experiment 9 PWM output experiment (learning notes)
Cf603e pastoral oddities [CDQ divide and conquer, revocable and search set]
Global and Chinese markets for MRI safe implants 2022-2028: technology, participants, trends, market size and share Research Report
Prime Protocol宣布在Moonbeam上的跨链互连应用程序