|
Hi, I see in script reference, it do it like this -- > http://unity3d.com/support/documentation/ScriptReference/Object.Instantiate.html
and that is my script but doesn't work it. the prefab have attached a Rigidbody And the error is that -- > Assets/MyScripts/Weapon.cs(35,17): error CS0266: Cannot implicitly convert type thanks for your help !!!!!
(comments are locked)
|
|
"An explicit conversion exists (are you missing a cast?)" - the answer is yes, you're missing a cast. Instantiate returns a reference of type I'm not sure when the generic version of Instantiate<> was introduced (in my Unity 3.0 i think it's not available) but it should work as well.
(comments are locked)
|
