Welcome,
Guest
. Please
login
or
register
.
June 02, 2023, 10:53:39 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Unified anchor with respect to UI Root in a gameObject within a prefab
« previous
next »
Print
Pages: [
1
]
Author
Topic: Unified anchor with respect to UI Root in a gameObject within a prefab (Read 1204 times)
Tatanan
Jr. Member
Thank You
-Given: 11
-Receive: 0
Posts: 81
Unified anchor with respect to UI Root in a gameObject within a prefab
«
on:
October 14, 2014, 06:09:06 AM »
Just that.
Is is possible?
I'm seeing that, when I save a prefab, those anchors with respect to UI Root don't appears on other instances of this prefab.
Logged
Game developer on
Casual Arena
.
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Unified anchor with respect to UI Root in a gameObject within a prefab
«
Reply #1 on:
October 14, 2014, 03:02:09 PM »
Have a UIWidget on your prefab object, and anchor everything underneath that prefab to this root widget instead of the screen. When you instantiate the prefab, also set its widget's anchor to UICamera.list[0].camera.transform.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Unified anchor with respect to UI Root in a gameObject within a prefab