Welcome,
Guest
. Please
login
or
register
.
April 25, 2025, 08:01:23 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Convert postionLocal between parent and child in Ngui
« previous
next »
Print
Pages: [
1
]
Author
Topic: Convert postionLocal between parent and child in Ngui (Read 1365 times)
hanyu279
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 5
Convert postionLocal between parent and child in Ngui
«
on:
October 06, 2014, 11:23:33 AM »
i have hierarchy
level 1. game_obj1
level 2. game_obj2
level 3. game_obj3
How to convert postionlocal of game_obj3 to postionlocal of game_obj1 ?
And game_obj1 to game_obj3
Thanks all !
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Convert postionLocal between parent and child in Ngui
«
Reply #1 on:
October 07, 2014, 10:00:00 AM »
Same way as with any other game object in Unity. Use the transform.LocalToWorld/WorldToLocal.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Convert postionLocal between parent and child in Ngui