x


Is there any way to use parenting as an organization tool without creating a Transform bond?

I mean, can I parent one GameObject into another without the child GameOBject Transform being affected by the parent GameObject Transform? That way I could use parenting as a visual hierarchy aid, and I would move each object on its own without one of them dragging the other without my will.

more ▼

asked Jan 27 '10 at 02:59 PM

Micha Lewtak 2 gravatar image

Micha Lewtak 2
183 7 7 9

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

3 answers: sort voted first

No, that is not possible. Note that selecting the hierarchy view and hitting Cmd-F will bring up a search field in Unity 2.6 - just like in the project view. Maybe that helps organizing your project.

more ▼

answered Jan 27 '10 at 03:23 PM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

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

jonas is right. as another way you can tag all organiser gameobjects with a special tag and then find and delete them at startup but this produces unneeded overhead and is not recommended

more ▼

answered Jan 27 '10 at 05:09 PM

Ashkan_gc gravatar image

Ashkan_gc
9.1k 33 56 117

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

Jonas and Ashkan are correct.

To add, however, you can trick it a bit - this is something I do in very specific cases:

I create an empty holder object and set it's transform properties to 0,0,0 for position and rotation and leave scale at 1,1,1

Since it has the same origin point as the World, any GameObject that sits directly inside of it will have the same Vector3 values for x,y,z for both local and global.

I usually only do this if I have a bunch of static objects in the scene that I do not need to interact with much/at all. Also it is adding more to your scene so you might want to weigh the performance costs there.

Hope that helps,

==

more ▼

answered Jan 27 '10 at 05:34 PM

equalsequals gravatar image

equalsequals
4.5k 16 28 64

(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:

x1679
x1283
x426
x184

asked: Jan 27 '10 at 02:59 PM

Seen: 1168 times

Last Updated: Mar 04 '10 at 09:57 AM