x


how can i found top of parent?

i want to show main parent name like : Player --> a1 --> a2 --> a3 --> a4 --> a5 .... i added a script to last parent. and i want to it print main parent name "Player" i tried transform.root.parent.name but ain't work.

more ▼

asked Mar 07 '11 at 12:23 PM

bisaniyehocam gravatar image

bisaniyehocam
148 35 39 47

sometimes i think im a fool : transform.root.name :)

Mar 07 '11 at 12:32 PM bisaniyehocam
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

root.parent doesn't make any sense. Transform.root can't have a parent.

more ▼

answered Mar 07 '11 at 12:33 PM

Jessy gravatar image

Jessy
15.7k 72 95 198

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

x440
x28

asked: Mar 07 '11 at 12:23 PM

Seen: 1514 times

Last Updated: Mar 07 '11 at 12:23 PM