C# Class U9NGUIUtils, swip3

Inheritance: MonoBehaviour
Show file Open project: unit9/swip3

Public Methods

Method Description
CalculateTransformLocalBounds ( Transform trans ) : Bounds
CalculateWidgetLocalBounds ( UIWidget, w, Transform relativeTo ) : Bounds
GetLocalOffset ( Transform trans, Transform relativeTo ) : Vector3

Method Details

CalculateTransformLocalBounds() public static method

public static CalculateTransformLocalBounds ( Transform trans ) : Bounds
trans Transform
return Bounds

CalculateWidgetLocalBounds() public static method

public static CalculateWidgetLocalBounds ( UIWidget, w, Transform relativeTo ) : Bounds
w UIWidget,
relativeTo Transform
return Bounds

GetLocalOffset() public static method

public static GetLocalOffset ( Transform trans, Transform relativeTo ) : Vector3
trans Transform
relativeTo Transform
return Vector3