Hello Guest

Author Topic: Get Rendered UI Window Bounds?  (Read 3928 times)

kabuto202

  • Newbie
  • *
  • Posts: 6
    • View Profile
Get Rendered UI Window Bounds?
« on: April 17, 2014, 02:16:53 pm »
So using the included 2DTookit demo Layout Window prefab, how can I get the rendered bounds of the window assuming I resized the object in the tk2dUILayoutContainer? Calling GetBounds() on the slicedsprite only gets me the bounds of the actual sprite itself, and unfortunately it seems that the tk2dUILayoutContainer class is undocumented.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Get Rendered UI Window Bounds?
« Reply #1 on: April 18, 2014, 05:07:31 am »
tk2dUILayout.GetMinBounds and GetMaxBounds will return the world space min and max bounds for the layout.