C# Class UnityCommonLibrary.Utility.UIUtility

Exibir arquivo Open project: thebeardphantom/UnityCommonLibrary

Public Methods

Method Description
GetWorldCenter ( this rectTransform ) : Vector2
GetWorldRect ( this rectTransform ) : Rect
SetPivot ( this rectTransform, Vector2 pivot ) : void

Method Details

GetWorldCenter() public static method

public static GetWorldCenter ( this rectTransform ) : Vector2
rectTransform this
return UnityEngine.Vector2

GetWorldRect() public static method

public static GetWorldRect ( this rectTransform ) : Rect
rectTransform this
return UnityEngine.Rect

SetPivot() public static method

public static SetPivot ( this rectTransform, Vector2 pivot ) : void
rectTransform this
pivot UnityEngine.Vector2
return void