IPauseReceiver
You can implement a method to call when the graph is paused.
About pausing the graph
- Pause with the
Pause()
method ofLogicToolkit.LogicPlayerBase
. - Resume with the
Resume()
method ofLogicToolkit.LogicPlayerBase
. - Pausing is also performed in conjunction with the
isActiveAndEnabled
property ofLogicToolkit.LogicPlayerBase
.
How to write a script
- Implement
LogicToolkit.IPauseReceiver
in types that inherit from various NodeComponents. - Implement
public void OnPause(bool pause)
.
Code example
|
|
In this example, when using this component, such as in a Service node, the Animator will pause in conjunction with the pose of the graph.