Newbie question about attachment

Hi there,

I’m evaluating Unity for Iphone and I’m trying to understand a basic principle that you guys probably know.

I’m looking at the IphoneRagdoll sample and I want to know how the DragController script gets called. I don’t see any GameObject with this script attached to. Am I missing something ? Is there another way to see attachments other than in the inspector ?

Thanks in advance.

Do a bit more digging and you’ll see it’s attached to Lerpz > rootJoint > torso. :slight_smile:

Thanks for your answer,

but I don’t see any torso under rootjoint…

I have in Project view:

Objects
Lerpz
Lerpz
rootJoint
Take 001

Nothing under rootJoint and when selecting it, the inspector view doesn’t show any torso object

Look in the Hierarchy View. You will find it there.

Directional light
Lerpz
-Lerpz
-rootJoint
–torso
Level
Main Camera

The hierarchy view displays only Main Camera for me.

I reinstalled the sample, same thing.

If I Drag and drop Lerpz in the hierarchy view, obviously I can see torso, but no scripts are attached.

Don’t know what’s wrong…

Never mind, I was just loading the project, not the scene…

For me, loading a project means you load all related to your work, but not in Unity apparently.

Thanks for your feedback anyway.

Unity will load the last scene you were viewing, if you’re opening the project for the first time then an empty default scene is loaded instead. Saying “load all related to your work” doesn’t make much sense, especially if you have multiple scenes so the default empty (first load) and last viewed (later loads) seems quite sensible to me. :slight_smile: