TransformExtensions.SetPositionX
Extension Method in TransformExtensions
Declaration
public static void SetPositionX(this Transform transform, float x)
Description
Sets the position of the transform in the x-axis.
Parameters
transform | The transform to set the position of. |
x | The x-axis position to set. |