C# Class UnityEngine.TransformExtensions

Extansioon methods for Vector3 modification and easy transform vector3 modifications. Each method has optional parameters so you can call them in your preferred order and/or omit parameters you don't want to use. For example, vector3.SetValues(z:10) will set only the z value on the returned Vector3.
Show file Open project: Naphier/NGTools

Public Methods

Method Description
AddEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
AddToLocalEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
AddToLocalPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
AddToLocalScale ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
AddToPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
AddValues ( this vector3, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : Vector3
SetEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
SetLocalEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
SetLocalPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
SetLocalScale ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
SetPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
SetValues ( this vector3, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : Vector3

Method Details

AddEulerAngles() public static method

public static AddEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

AddToLocalEulerAngles() public static method

public static AddToLocalEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

AddToLocalPosition() public static method

public static AddToLocalPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

AddToLocalScale() public static method

public static AddToLocalScale ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

AddToPosition() public static method

public static AddToPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

AddValues() public static method

public static AddValues ( this vector3, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : Vector3
vector3 this
x float
y float
z float
return Vector3

SetEulerAngles() public static method

public static SetEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

SetLocalEulerAngles() public static method

public static SetLocalEulerAngles ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

SetLocalPosition() public static method

public static SetLocalPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

SetLocalScale() public static method

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

SetPosition() public static method

public static SetPosition ( this transform, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : void
transform this
x float
y float
z float
return void

SetValues() public static method

public static SetValues ( this vector3, float x = float.NaN, float y = float.NaN, float z = float.NaN ) : Vector3
vector3 this
x float
y float
z float
return Vector3