@@ -66,120 +66,150 @@ public static void ResetLocal(this Transform transform)
6666 /// </summary>
6767 /// <param name="transform">The transform to set the position of.</param>
6868 /// <param name="x">The x-axis position to set.</param>
69- public static void SetPositionX ( this Transform transform , float x ) =>
69+ public static void SetPositionX ( this Transform transform , float x )
70+ {
7071 transform . position = new Vector3 ( x , transform . position . y , transform . position . z ) ;
72+ }
7173
7274 /// <summary>
7375 /// Sets the position of the transform in the y-axis.
7476 /// </summary>
7577 /// <param name="transform">The transform to set the position of.</param>
7678 /// <param name="y">The y-axis position to set.</param>
77- public static void SetPositionY ( this Transform transform , float y ) =>
79+ public static void SetPositionY ( this Transform transform , float y )
80+ {
7881 transform . position = new Vector3 ( transform . position . x , y , transform . position . z ) ;
82+ }
7983
8084 /// <summary>
8185 /// Sets the position of the transform in the z-axis.
8286 /// </summary>
8387 /// <param name="transform">The transform to set the position of.</param>
8488 /// <param name="z">The z-axis position to set.</param>
85- public static void SetPositionZ ( this Transform transform , float z ) =>
89+ public static void SetPositionZ ( this Transform transform , float z )
90+ {
8691 transform . position = new Vector3 ( transform . position . x , transform . position . y , z ) ;
92+ }
8793
8894 /// <summary>
8995 /// Sets the local position of the transform in the x-axis.
9096 /// </summary>
9197 /// <param name="transform">The transform to set the local position of.</param>
9298 /// <param name="x">The x-axis position to set.</param>
93- public static void SetLocalPositionX ( this Transform transform , float x ) =>
99+ public static void SetLocalPositionX ( this Transform transform , float x )
100+ {
94101 transform . localPosition = new Vector3 ( x , transform . localPosition . y , transform . localPosition . z ) ;
102+ }
95103
96104 /// <summary>
97105 /// Sets the local position of the transform in the y-axis.
98106 /// </summary>
99107 /// <param name="transform">The transform to set the local position of.</param>
100108 /// <param name="y">The y-axis position to set.</param>
101- public static void SetLocalPositionY ( this Transform transform , float y ) =>
109+ public static void SetLocalPositionY ( this Transform transform , float y )
110+ {
102111 transform . localPosition = new Vector3 ( transform . localPosition . x , y , transform . localPosition . z ) ;
112+ }
103113
104114 /// <summary>
105115 /// Sets the local position of the transform in the z-axis.
106116 /// </summary>
107117 /// <param name="transform">The transform to set the local position of.</param>
108118 /// <param name="z">The z-axis position to set.</param>
109- public static void SetLocalPositionZ ( this Transform transform , float z ) =>
119+ public static void SetLocalPositionZ ( this Transform transform , float z )
120+ {
110121 transform . localPosition = new Vector3 ( transform . localPosition . x , transform . localPosition . y , z ) ;
122+ }
111123
112124 /// <summary>
113125 /// Sets the euler angles of the transform in the x-axis.
114126 /// </summary>
115127 /// <param name="transform">The transform to set the euler angles of.</param>
116128 /// <param name="x">The x-axis euler angle to set.</param>
117- public static void SetEulerX ( this Transform transform , float x ) =>
129+ public static void SetEulerAnglesX ( this Transform transform , float x )
130+ {
118131 transform . eulerAngles = new Vector3 ( x , transform . eulerAngles . y , transform . eulerAngles . z ) ;
132+ }
119133
120134 /// <summary>
121135 /// Sets the euler angles of the transform in the y-axis.
122136 /// </summary>
123137 /// <param name="transform">The transform to set the euler angles of.</param>
124138 /// <param name="y">The y-axis euler angle to set.</param>
125- public static void SetEulerY ( this Transform transform , float y ) =>
139+ public static void SetEulerAnglesY ( this Transform transform , float y )
140+ {
126141 transform . eulerAngles = new Vector3 ( transform . eulerAngles . x , y , transform . eulerAngles . z ) ;
142+ }
127143
128144 /// <summary>
129145 /// Sets the euler angles of the transform in the z-axis.
130146 /// </summary>
131147 /// <param name="transform">The transform to set the euler angles of.</param>
132148 /// <param name="z">The z-axis euler angle to set.</param>
133- public static void SetEulerZ ( this Transform transform , float z ) =>
149+ public static void SetEulerAnglesZ ( this Transform transform , float z )
150+ {
134151 transform . eulerAngles = new Vector3 ( transform . eulerAngles . x , transform . eulerAngles . y , z ) ;
152+ }
135153
136154 /// <summary>
137155 /// Sets the local euler angles of the transform in the x-axis.
138156 /// </summary>
139157 /// <param name="transform">The transform to set the local euler angles of.</param>
140158 /// <param name="x">The x-axis euler angle to set.</param>
141- public static void SetLocalEulerX ( this Transform transform , float x ) =>
159+ public static void SetLocalEulerAnglesX ( this Transform transform , float x )
160+ {
142161 transform . localEulerAngles = new Vector3 ( x , transform . localEulerAngles . y , transform . localEulerAngles . z ) ;
162+ }
143163
144164 /// <summary>
145165 /// Sets the local euler angles of the transform in the y-axis.
146166 /// </summary>
147167 /// <param name="transform">The transform to set the local euler angles of.</param>
148168 /// <param name="y">The y-axis euler angle to set.</param>
149- public static void SetLocalEulerY ( this Transform transform , float y ) =>
169+ public static void SetLocalEulerAnglesY ( this Transform transform , float y )
170+ {
150171 transform . localEulerAngles = new Vector3 ( transform . localEulerAngles . x , y , transform . localEulerAngles . z ) ;
172+ }
151173
152174 /// <summary>
153175 /// Sets the local euler angles of the transform in the z-axis.
154176 /// </summary>
155177 /// <param name="transform">The transform to set the local euler angles of.</param>
156178 /// <param name="z">The z-axis euler angle to set.</param>
157- public static void SetLocalEulerZ ( this Transform transform , float z ) =>
179+ public static void SetLocalEulerAnglesZ ( this Transform transform , float z )
180+ {
158181 transform . localEulerAngles = new Vector3 ( transform . localEulerAngles . x , transform . localEulerAngles . y , z ) ;
182+ }
159183
160184 /// <summary>
161185 /// Sets the scale of the transform in the x-axis.
162186 /// </summary>
163187 /// <param name="transform">The transform to set the scale of.</param>
164188 /// <param name="x">The x-axis scale to set.</param>
165- public static void SetScaleX ( this Transform transform , float x ) =>
189+ public static void SetLocalScaleX ( this Transform transform , float x )
190+ {
166191 transform . localScale = new Vector3 ( x , transform . localScale . y , transform . localScale . z ) ;
192+ }
167193
168194 /// <summary>
169195 /// Sets the scale of the transform in the y-axis.
170196 /// </summary>
171197 /// <param name="transform">The transform to set the scale of.</param>
172198 /// <param name="y">The y-axis scale to set.</param>
173- public static void SetScaleY ( this Transform transform , float y ) =>
199+ public static void SetLocalScaleY ( this Transform transform , float y )
200+ {
174201 transform . localScale = new Vector3 ( transform . localScale . x , y , transform . localScale . z ) ;
202+ }
175203
176204 /// <summary>
177205 /// Sets the scale of the transform in the z-axis.
178206 /// </summary>
179207 /// <param name="transform">The transform to set the scale of.</param>
180208 /// <param name="z">The z-axis scale to set.</param>
181- public static void SetScaleZ ( this Transform transform , float z ) =>
209+ public static void SetLocalScaleZ ( this Transform transform , float z )
210+ {
182211 transform . localScale = new Vector3 ( transform . localScale . x , transform . localScale . y , z ) ;
212+ }
183213
184214 }
185215
0 commit comments