Learn how to use NodeCanvas

Download PDF Version

Using FixedUpdate and OnGUI

By default all Action Tasks are updated in the normal Update loop, but in some cases you might want to use FixedUpdate or even OnGUI. To avoid unnecessary calls by default, there is no FixedUpdate or OnGUI methods to override though. Instead this can be done by subscribing/unsubscribing a method to the onFixedUpdate or onGUI events found in the MonoManager class.

Following is an example for using OnFixedUpdate in a custom ActionTask:

Here is an example for using OnGUI:


Yes No Suggest edit
2 of 2 users found this section helpful
Suggest Edit