|
Hello, I'm following along with the Unity Game Development Essentials book and am up to chapter 6, I've declared a rigidbody prefab in the script that I want to instantiate, but I can't assign this in the inspector (it shows that there are no rigidbody prefabs...?), the only way I can define something is by having it in the scene, which does not work. The code I am using is
I have no idea what is going on here...
(comments are locked)
|
|
That works fine for me assuming you drag the prefab from the project window into the inspector field. It won't show up on the drop down list, though. Thanks, hadn't though of dragging and dropping! I'm so used to using the drop down menu... is there some reason why it has to be done this way?
Jul 14 '10 at 08:00 AM
Troy
It only shows you items in the scene for components and gameobjects - everything else you have to drag in
Jul 14 '10 at 08:30 AM
Mike 3
(comments are locked)
|
|
Hi, same problem here.. I have to variables here in my Code I want to Assign one of the variable of type Rigidbody with a prefab. This Fails. On the second Variable of Type Transform this works Fine. (I try to use both Drag and Drop and the List) Any Suggestions? Thanks Jan
(comments are locked)
|
