Author Topic: UIPanel Clipped panels must have a uniform scale, or clipping won't work properl  (Read 3562 times)

elvess

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 44
    • View Profile
I have a parent with Clipping - None, and as child a have UIPanel with Clipping - Soft Clip and UIDraggable Camera. So i have Scroll View (Panel). When I scale Parent by script (transform.localScale = new Vector3(0.8f, 0.8f, 1) I get an error on Panel with Clipping - Soft Clip  - Clipped panels must have a uniform scale, or clipping won't work properl. When I try to scale it manually in game its ok. How can i fix it? Scaling is necessary.

ryan

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 90
    • View Profile
Scale z along with x and y:

transform.localScale = new Vector3(0.8f, 0.8f, 0.8f)

elvess

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 44
    • View Profile
Its works) Thank U