NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
UIDragResize Class Reference

This script makes it possible to resize the specified widget by dragging on the object this script is attached to. More...

Inheritance diagram for UIDragResize:

Public Attributes

UIWidget target
 Widget that will be dragged. More...
 
UIWidget.Pivot pivot = UIWidget.Pivot.BottomRight
 Widget's pivot that will be dragged More...
 
int minWidth = 100
 Minimum width the widget will be allowed to shrink to when resizing. More...
 
int minHeight = 100
 Minimum height the widget will be allowed to shrink to when resizing. More...
 
int maxWidth = 100000
 Maximum width the widget will be allowed to expand to when resizing. More...
 
int maxHeight = 100000
 Maximum height the widget will be allowed to expand to when resizing. More...
 

Detailed Description

This script makes it possible to resize the specified widget by dragging on the object this script is attached to.

Member Data Documentation

int UIDragResize.maxHeight = 100000

Maximum height the widget will be allowed to expand to when resizing.

int UIDragResize.maxWidth = 100000

Maximum width the widget will be allowed to expand to when resizing.

int UIDragResize.minHeight = 100

Minimum height the widget will be allowed to shrink to when resizing.

int UIDragResize.minWidth = 100

Minimum width the widget will be allowed to shrink to when resizing.

UIWidget.Pivot UIDragResize.pivot = UIWidget.Pivot.BottomRight

Widget's pivot that will be dragged

UIWidget UIDragResize.target

Widget that will be dragged.


The documentation for this class was generated from the following file: