Documentation

Learn how to use NodeCanvas

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
12 of 12 users found this section helpful
Suggest Edit

© Paradox Notion 2014-2024. All rights reserved.