Welcome,
Guest
. Please
login
or
register
.
April 28, 2026, 06:14:38 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Why is it not allowed to add UIPanel and UIWidget on the same GameObject?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Why is it not allowed to add UIPanel and UIWidget on the same GameObject? (Read 3288 times)
rocman
Newbie
Thank You
-Given: 1
-Receive: 0
Posts: 4
Why is it not allowed to add UIPanel and UIWidget on the same GameObject?
«
on:
May 27, 2014, 09:49:26 PM »
It's useful to do this sometimes.
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: Why is it not allowed to add UIPanel and UIWidget on the same GameObject?
«
Reply #1 on:
May 28, 2014, 04:00:01 AM »
Because both derive from UIRect which is used for anchoring - having both, will make it ambiguous which is used.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Why is it not allowed to add UIPanel and UIWidget on the same GameObject?