The behavior "Behavior" on GameObject "Agent" contains no root task. This behavior will be disabled.

I am receiving the error in the title for the following simple BT:

1650996404167.png


Code for "Wander around origin":

Code:
public override TaskStatus OnUpdate()
        {
            if (Time.time - destinationSetTime > pauseTime)
            {
                SetDestination();
            }

            return TaskStatus.Running;
        }

        void SetDestination()
        {
            agent.SetDestination(Utils_GPS.GenerateRandomPoint(agent.originUsedForWander, Random.Range(minWanderDistance.Value, maxWanderDistance.Value)));
            destinationSetTime = Time.time;

            pauseTime = Random.Range(minTimeBetweenDestinations.Value, maxTimeBetweenDestinations.Value);
        }
 
I just tried and wasn't able to reproduce that error. Are you sure that it's the right tree that you are looking at?
 
Top