Documentation

Learn how to use NodeCanvas

Download PDF Version

Using FixedUpdate and OnGUI

By default, the graph and thus all its 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 are 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 of using OnFixedUpdate in a custom ActionTask:

Here is an example of using OnGUI:

 

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