- Home /
The object xyz must be a prefab in the project view (bug?)
I am using Network.Instantiate() from an object that is a prefab. I think this is a bug in Unity 4.6 ( Link to Unity forums thread ), but is there any way around this?
Answer by Bunny83 · Oct 22, 2014 at 12:54 PM
Well it's most likely that the reference you pass to Network.Instantiate isn't a reference to a prefab but an object in the scene. Maybe the reference you're using got replaced by a reference to an instance. This could have happend in one of your scripts or if a self-referencing reference got instantiated. The latter is something most people have problems with to understand.
Your actual code, an explanation where the script is attached to, how you've setup your prefab reference and where / when you execute the Network.Instantiate would help. The information you provided has too many unresolved variables.
Thanks. I didn't post my code because I thought that it was a bug in Unity. I will try to find the problem myself now, if I can't, I'll just post new question I guess.
Your answer
Follow this Question
Related Questions
preview of prefabs & materials are turn to red blue color 0 Answers
Spawn Prefab inside another Prefab 0 Answers
Prefab SerializedProperty weird error, bug? 2 Answers
Display equipment over network 1 Answer
Prefabs are randomly erased 0 Answers