x


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...

more ▼

asked May 27 '10 at 09:41 AM

Grimmy gravatar image

Grimmy
533 58 64 69

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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

more ▼

answered May 27 '10 at 10:38 AM

Mike 3 gravatar image

Mike 3
30.5k 10 65 252

(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered May 27 '10 at 10:07 AM

taoa gravatar image

taoa
1.6k 8 13 34

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)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2083
x1092
x382
x379
x225

asked: May 27 '10 at 09:41 AM

Seen: 1673 times

Last Updated: May 27 '10 at 09:41 AM