public static SetLocalZ ( this transform, float z ) : void | ||
transform | this | |
z | float | |
Résultat | void |
public static void SetLocalZ(this Transform transform, float z)
{
transform.localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, z);
}