Search code examples
unity-game-enginescrollviewngui

How get x and y position of ScrollView in NGUI


I am try to access most left and upper x and y position of ScrollView in NGUI but unable to access. i tried to access with tranform.LocalPosition.x but what ever value its give it is middle anchor value. I want want most left and upper position of ScrollView in NGUI.

enter image description here

Thanks You Your help will be appreciated.


Solution

  • You will want to look at the UIRect component of the panel. From that you can get just about any information you would want about your NGUI element.