Author Topic: Dynamic Scrollview Height Value  (Read 4119 times)

GroovyGray

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Dynamic Scrollview Height Value
« on: January 29, 2015, 02:21:14 PM »
Where can I get access to the value for dynamic height that results from adding and removing items from a scrollview?

It is not the UIPanel / Size / Y that I'm looking for. It's the actual height of the orange rect in the attached image.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic Scrollview Height Value
« Reply #1 on: January 30, 2015, 02:50:23 PM »
UIScrollView.bounds

The orange outline is drawn in UIScrollView.OnDrawGizmos.

GroovyGray

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Dynamic Scrollview Height Value
« Reply #2 on: February 01, 2015, 06:51:39 PM »
Thanks! Worked like a charm.