- Home /
Whats the difference between an Object and A GameObject?
..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...
Answer by Mike 3 · May 27, 2010 at 10:38 AM
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
Answer by taoa · May 27, 2010 at 10:07 AM
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.
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)
Your answer
Follow this Question
Related Questions
How to make a gameobject into a stream? 1 Answer
Cannot convert object to gameObject 3 Answers
Cannot cast from source type to destination type 1 Answer
inspector,Component 0 Answers
How to Change a character?? 1 Answer