How do I call OnFixedUpdate()?

OhJeongSeok

New member
Hello.

I tried to call OnFixedUpdate method in the Action.

C#:
public class TestAction : Action
{
    public override void OnAwake()
    {
        Debug.Log("TestAction OnAwake");
    }

    public override void OnFixedUpdate()
    {
        Debug.Log("TestAction OnFixedUpdate");
    }

 
}

Like this.

But Doesn't log "TestAction OnFixedUpdate"

How do I call OnFixedUpdate()?
 
Even if you are only working with OnFixedUpdate you'll still need to override OnUpdate because the default is to return success immediately.

Code:
public override TaskStatus OnUpdate()
{
   return TaskStatus.Running;
}
 
Top