Example #1
0
 /// <summary>
 /// Set the world Y position.
 /// </summary>
 /// <param name="argTransform">Transform to change position of.</param>
 /// <param name="argY">The new world Y coordinate.</param>
 public static void SetPositionY(this Transform argTransform, float argY)
 {
     TransformExtensions.SetPosition(argTransform, argTransform.position.x, argY, argTransform.position.z);
 }
Example #2
0
 /// <summary>
 /// Set the local Z position.
 /// </summary>
 /// <param name="argTransform">Transform to change position of.</param>
 /// <param name="argZ">The new local Z coordinate.</param>
 public static void SetLocalPositionZ(this Transform argTransform, float argZ)
 {
     TransformExtensions.SetPosition(argTransform, argTransform.localPosition.x, argTransform.localPosition.y, argZ);
 }
Example #3
0
 /// <summary>
 /// Set the world Z position.
 /// </summary>
 /// <param name="argTransform">Transform to change position of.</param>
 /// <param name="argX">The new world Z coordinate.</param>
 public static void SetPositionX(this Transform argTransform, float argX)
 {
     TransformExtensions.SetPosition(argTransform, argX, argTransform.position.y, argTransform.position.z);
 }