Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: artfabrique on October 15, 2015, 10:35:49 AM

Title: UIPanel region animation possible bug.
Post by: artfabrique 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 (
Title: Re: UIPanel region animation possible bug.
Post by: artfabrique 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.
Title: Re: UIPanel region animation possible bug.
Post by: ArenMook 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.