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