public static SetLocalX ( this transform, float x ) : void | ||
transform | this | |
x | float | |
return | void |
public static void SetLocalX(this Transform transform, float x)
{
transform.localPosition = new Vector3(x, transform.localPosition.y, transform.localPosition.z);
}