Unity
Last updated
Last updated
You can use Unity event nodes to initiate flows in AFX graphs. For more information, see Flows.
Most of the Unity event nodes that are available relate to stages in Unity's script lifecycle. For more information about the script lifecycle, refer to Order of execution for event functions in the Unity documentation.
Nodes that relate to Unity's script lifecycle have a single output port, which initiates a flow when the lifecycle event occurs.
The following table summarizes the available nodes:
On Enable
Called when the object becomes enabled and active.
Start
Called before the first frame update only if the script instance is enabled.
Fixed Update
Happens at fixed intervals of in-game time rather than per frame.
Update
Called once per frame and is the main function for frame updates.
Late Update
Called once per frame, after Update
has finished.
On Disable
Called when the object becomes disabled or inactive.
Initiates a flow at defined intervals.
Duration
Float [editable]
The interval, in seconds, between activation of flows.
Exit
Flow
Initiation of a flow.