|
I want to have a custom menu item that creates a prefab for me. I tried doing this:
This creates the prefab, but it also keeps the GameObject in the scene. If I delete the GameObject the prefab will be empty (the Animation component is lost). If I delete the prefab from my project folder before deleting the GameObject in my scene Unity crashes. (reported bug) Is there another way to do this? Or is it just a bug? (using b7)
(comments are locked)
|
|
After searching a bit more I found this answer which solved my problem: http://answers.unity3d.com/questions/1125/how-do-i-programmatically-assign-a-gameobject-to-a-prefab Keeping the question here, so the next one who's as dumb as I will have a better chance of finding the right answer.
(comments are locked)
|
