How to fetch transform points after spawning?

Hello chaps

Sorry for this questioin.

I Use A* pathfinding asset.

It works good, but as I use a spawning system I can´t figure a way to fetch my transform points used for patrol after they spawn?

The below code is part of the assst, where i can put in an array of transforms. It works great if my enemies don’t spawn…

/// <summary>Target points to move to in order</summary>
        public Transform[] targets;

You should give whatever is spawning these enemies a reference to your spawn points, or whatever is holding onto these points.

Instantiate them, pass through the collection.

1 Like