|
I get that error when I try to run this code: The strange thing is, I have the exact same thing in another script, and it runs : /
(comments are locked)
|
|
what is cube? make sure it's not null.. if you're trying to instantiate a primitive cube (not a prefab named 'cube') then you need to use GameObject.CreatePrimitive instead. The problem was close to that. I had it set to an actual GameObject (which I deleted later on), instead of the Prefab. Thanks :3
Jul 30 '11 at 07:03 PM
crump3ts
(comments are locked)
|
