|
Hello. Sorry for posting such a similar question to others, but it seems the answers I can find tell me there is nothing wrong with my script. I'm sure I am missing something obvious (newbie alert). I have the following code on my Main Camera, so it should happen straight away Instead of a zombie I get the following error > BCE0023: No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(UnityEngine.GameObject, UnityEngine.Vector3, UnityEngine.Vector3)' was found I would really appreciate any help. I just can't see what I have done. If I had to guess from the error message, I'd say it wants my prefab to be a GameObject not a Transform, but that isn't right.... is it? Thanks in advance
(comments are locked)
|
|
The third parameter is a Quaternion - so you would need: SOLVED Thanks Mike. Worked perfectly, and another piece of the Unity puzzle fits into place. Would like to vote your answer up, but apparently I can't with his login, despite using it for the original post.
Jul 14 '12 at 09:45 PM
Lukas Barbarossa
(comments are locked)
|
