C# Class UnityCommonLibrary.Utility.TransformUtility

Mostrar archivo Open project: thebeardphantom/UnityCommonLibrary

Public Methods

Method Description
DirectionTo ( this t, Transform other ) : Vector3
DirectionTo ( this t, Vector3 other ) : Vector3
FindChildBFS ( this t, string search, System.StringComparison comparison = StringComparison.CurrentCulture, bool tag = false ) : Transform
FindChildDFS ( this t, string search, System.StringComparison comparison = StringComparison.CurrentCulture, bool tag = false ) : Transform
FindParent ( this t, string search, System.StringComparison comparison = StringComparison.CurrentCulture, bool tag = false ) : Transform
GetChildren ( this transform ) : UnityEngine.Transform[]
Match ( this t, Transform other, TransformElement elements ) : void
Reset ( this t ) : void
Reset ( this t, Space space ) : void
Reset ( this t, TransformElement elements ) : void
Reset ( this t, TransformElement elements, Space space ) : void
SetEulerAngles ( this transform, Space space, float x = null, float y = null, float z = null ) : void
SetLocalScale ( this transform, float x = null, float y = null, float z = null ) : void
SetPosition ( this transform, Space space, float x = null, float y = null, float z = null ) : void

Method Details

DirectionTo() public static method

public static DirectionTo ( this t, Transform other ) : Vector3
t this
other UnityEngine.Transform
return Vector3

DirectionTo() public static method

public static DirectionTo ( this t, Vector3 other ) : Vector3
t this
other Vector3
return Vector3

FindChildBFS() public static method

public static FindChildBFS ( this t, string search, System.StringComparison comparison = StringComparison.CurrentCulture, bool tag = false ) : Transform
t this
search string
comparison System.StringComparison
tag bool
return UnityEngine.Transform

FindChildDFS() public static method

public static FindChildDFS ( this t, string search, System.StringComparison comparison = StringComparison.CurrentCulture, bool tag = false ) : Transform
t this
search string
comparison System.StringComparison
tag bool
return UnityEngine.Transform

FindParent() public static method

public static FindParent ( this t, string search, System.StringComparison comparison = StringComparison.CurrentCulture, bool tag = false ) : Transform
t this
search string
comparison System.StringComparison
tag bool
return UnityEngine.Transform

GetChildren() public static method

public static GetChildren ( this transform ) : UnityEngine.Transform[]
transform this
return UnityEngine.Transform[]

Match() public static method

public static Match ( this t, Transform other, TransformElement elements ) : void
t this
other UnityEngine.Transform
elements TransformElement
return void

Reset() public static method

public static Reset ( this t ) : void
t this
return void

Reset() public static method

public static Reset ( this t, Space space ) : void
t this
space Space
return void

Reset() public static method

public static Reset ( this t, TransformElement elements ) : void
t this
elements TransformElement
return void

Reset() public static method

public static Reset ( this t, TransformElement elements, Space space ) : void
t this
elements TransformElement
space Space
return void

SetEulerAngles() public static method

public static SetEulerAngles ( this transform, Space space, float x = null, float y = null, float z = null ) : void
transform this
space Space
x float
y float
z float
return void

SetLocalScale() public static method

public static SetLocalScale ( this transform, float x = null, float y = null, float z = null ) : void
transform this
x float
y float
z float
return void

SetPosition() public static method

public static SetPosition ( this transform, Space space, float x = null, float y = null, float z = null ) : void
transform this
space Space
x float
y float
z float
return void