Author Topic: UIPanel region animation possible bug.  (Read 4904 times)

artfabrique

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 45
    • View Profile
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 (

artfabrique

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 45
    • View Profile
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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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.