Pure ecs -> setting destination

If you having trouble with your authoring component, I have a working one here with no gameobject syncing and has and editor script similar to the default FollowerEntity.

I have been changing the DestinationPoint to move, not the MovementControl. I found that any systems you make that change the DestinationPoint should have these tags to ensure it doesn’t cause multiple repaths in a single frame.

[UpdateInGroup(typeof(Pathfinding.ECS.AIMovementSystemGroup))]
[UpdateBefore(typeof(Pathfinding.ECS.FollowerControlSystem))]

If you have multiple systems you can just order them within the group so that the highest priority is the last one to update.

1 Like