C# Class QFramework.QTransExtend

关于Transform 常用的代码封装起来
Exibir arquivo Open project: liangxiegame/QFramework

Public Methods

Method Description
Identity ( this trans ) : void

重置操作

OnClick ( this trans, QVoidDelegate callback ) : void
PosX ( Transform trans ) : float

localPosition 操作

PosY ( Transform trans ) : float
PosZ ( Transform trans ) : float
SetPosX ( Transform trans, float x ) : void
SetPosXY ( Transform trans, float x, float y ) : void
SetPosY ( Transform trans, float y ) : void
SetPosZ ( Transform trans, float z ) : void
SetScaleXY ( Transform trans, float x, float y ) : void

localScale操作

Method Details

Identity() public static method

重置操作
public static Identity ( this trans ) : void
trans this Trans.
return void

OnClick() public static method

public static OnClick ( this trans, QVoidDelegate callback ) : void
trans this
callback QVoidDelegate
return void

PosX() public static method

localPosition 操作
public static PosX ( Transform trans ) : float
trans UnityEngine.Transform Trans.
return float

PosY() public static method

public static PosY ( Transform trans ) : float
trans UnityEngine.Transform
return float

PosZ() public static method

public static PosZ ( Transform trans ) : float
trans UnityEngine.Transform
return float

SetPosX() public static method

public static SetPosX ( Transform trans, float x ) : void
trans UnityEngine.Transform
x float
return void

SetPosXY() public static method

public static SetPosXY ( Transform trans, float x, float y ) : void
trans UnityEngine.Transform
x float
y float
return void

SetPosY() public static method

public static SetPosY ( Transform trans, float y ) : void
trans UnityEngine.Transform
y float
return void

SetPosZ() public static method

public static SetPosZ ( Transform trans, float z ) : void
trans UnityEngine.Transform
z float
return void

SetScaleXY() public static method

localScale操作
public static SetScaleXY ( Transform trans, float x, float y ) : void
trans UnityEngine.Transform
x float
y float
return void