Welcome,
Guest
. Please
login
or
register
.
February 14, 2025, 05:43:14 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Changing Anchor Offset in UIWidget from code
« previous
next »
Print
Pages: [
1
]
Author
Topic: Changing Anchor Offset in UIWidget from code (Read 1968 times)
KeithT
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 55
Changing Anchor Offset in UIWidget from code
«
on:
June 30, 2015, 04:48:39 AM »
Trying to change the circled value from code with no luck, any suggestions?
....gameObject.GetComponent<UIWidget>().topAnchor...
Thanks in advance for any assistance.
Logged
KeithT
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 55
Re: Changing Anchor Offset in UIWidget from code
«
Reply #1 on:
July 01, 2015, 04:11:26 AM »
Scratch that, after a load more hunting around is actually pretty simple:
....gameObject.GetComponent<UIWidget>().topAnchor.absolute = 300;
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Changing Anchor Offset in UIWidget from code