|
..and how do I convert an Object into a GameObject? (As far as I am aware Objects dont appear in the hierachy but GameObjects do?) My personal problem is> I am trying to load in objects from an asset bundle and they only load when loaded as objects...which means I cant see them in the window...
(comments are locked)
|
|
The objects you're loading from your asset bundle are... assets. If you create and empty Game Object (Ctrl+Shift+N or GameObject->CreateEmpty) and slide your asset in it (assuming it makes sense, like if you do that with a 3D model) you'll have a Gamoe Object with your asset. That all makes perfect logical sense but slide them in from where? The objects don't appear in the project window anywhere even though they have been succesfully loaded.
May 27 '10 at 10:31 AM
Grimmy
I'm wondering if taoa is mixing up asset bundles with unitypackages - would explain the weird slide it in comment (as it'd be in the hierachy)
May 27 '10 at 10:39 AM
Mike 3
(comments are locked)
|
|
You'll need to Instantiate the asset you want from the asset bundle if you want it in the scene Object is the base type of all unity objects, GameObject is an object in world as you'd expect Here's an example: http://unity3d.com/support/documentation/ScriptReference/AssetBundle.html
(comments are locked)
|
