- Home /
Prefab Position
I'm making a path for an object using a navigation mesh and a some ponts that it has to follow. Since my object is a prefab, the poit's that i set up in the script have to be prefabs too, my problem is tha the prefabs don't mantain the position. i can even put it maually, but the object acts like the's no existing points. If i put the object in the scene and the point as empty (not prefab) the object functions normally.
Answer by HarshadK · May 22, 2018 at 08:51 AM
You have to instantiate prefabs from your script to create instances of prefab to use as points. It is explained in this manual page about Instantiating Prefabs at runtime
Answer by Pau678 · May 22, 2018 at 10:43 AM
But no, if i spawn the prefab too, my object won't get thet as his target, but the non invoked prefab, the original
Your answer
Follow this Question
Related Questions
Moving an object along a circular path 3 Answers
Importing instances via FBX and replacing with prefabs 1 Answer
Object slows down when moving to a NavPoint, speed is not constant 1 Answer
Pathfinding script breaking for prefabs only 1 Answer
Unity 2D : How to make a perfect clone of my Game Object? 3 Answers