Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
How to reference a prefab for NavMeshAgent?
Post Flair (click to view more posts with a particular flair)
Post Body

I’m trying to tell my enemies to chase the player, the problem is they are not spawned yet into the scene.

By my understanding what should be usually done is drag and drop the object that is in the scene into the NavMeshAgent box in the inspector, but how do I do this if the object is not in the scene?

How do I reference itself?

I didn’t have any problems with my character because it already exists in the scene when the scene loads, but enemies spawn at different times so I need to know how to reference something that doesn’t exists yet

Author
Account Strength
80%
Account Age
7 years
Verified Email
No
Verified Flair
No
Total Karma
6,705
Link Karma
4,585
Comment Karma
1,974
Profile updated: 5 hours ago
Posts updated: 4 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 months ago