Welcome,
Guest
. Please
login
or
register
.
April 19, 2026, 05:56:23 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPanel region animation possible bug.
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIPanel region animation possible bug. (Read 4904 times)
artfabrique
Newbie
Thank You
-Given: 5
-Receive: 0
Posts: 45
UIPanel region animation possible bug.
«
on:
October 15, 2015, 10:35:49 AM »
If you have a UIPanel with texture/soft clipping — try to animate its region from
State 1: region is small and all panel content is culled/off panel.
to
State 2: region is fullscreen and all panel content is inside.
The result is: when you hit play - the region frame is animated properly (as seen in the editor) BUT all content does not become visible. It stays culled (
Logged
artfabrique
Newbie
Thank You
-Given: 5
-Receive: 0
Posts: 45
Re: UIPanel region animation possible bug.
«
Reply #1 on:
October 16, 2015, 08:36:30 AM »
We found ot that we can not set region of UI panel, because it is private field, NOT property.
So the setter is not called by Animator. Write a small component whith public Vector4 field for rect and set UIPanel properties on update.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIPanel region animation possible bug.
«
Reply #2 on:
October 18, 2015, 06:43:29 PM »
Unity shouldn't be showing private fields to begin with. It has been a long-standing bug that they never acknowledged / fixed.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPanel region animation possible bug.