Hi,
Why AIDestinationSetter does not work inside a subscene? The agent does not move at all with no errors. The agent and the target are both in a subscene.
Thanks
I’ll have to tag @aron_granberg on this one to answer. Subscenes don’t come up super often around here so I’m sure he’d know more about it than me on this one.
1 Like
AIDestinationSetter is a GameObject to Entity bridge component, it expects that your FollowerEntity is not in a subscene. A* is designed to do the pathfinding in ECS land and then send the results to GameObject land.
If you want pure ECS with A*, where it’s all Entities in a Subscene, then you have to make a baker and set the DestinationPoint component using Systems or an EntityManager. This is a FollowerEntityAuthoring script I have been using for awhile that can help get you started.
2 Likes
@Curtis Thanks! The script worked perfectly.
2 Likes
Curtis the GOAT, coming in once again
1 Like