Class TransformExtensions
- Namespace
- Gamelogic.Extensions
- Assembly
- Assembly-CSharp.dll
Contains useful extensions for Select.
[Version(1, 0, 0)]
public static class TransformExtensions
- Inheritance
-
TransformExtensions
- Inherited Members
Methods
DestroyChildren(Transform)
public static void DestroyChildren(this Transform transform)
Parameters
transform
Transform
DestroyChildrenImmediate(Transform)
public static void DestroyChildrenImmediate(this Transform transform)
Parameters
transform
Transform
DestroyChildrenUniversal(Transform)
public static void DestroyChildrenUniversal(this Transform transform)
Parameters
transform
Transform
FlipPositive(Transform)
Sets all scale values to the absolute values.
public static void FlipPositive(this Transform transform)
Parameters
transform
Transform
FlipX(Transform)
Negates the X scale.
public static void FlipX(this Transform transform)
Parameters
transform
Transform
FlipXY(Transform)
Negates the X and Y scale.
public static void FlipXY(this Transform transform)
Parameters
transform
Transform
FlipXYZ(Transform)
Negates the X, Y and Z scale.
public static void FlipXYZ(this Transform transform)
Parameters
transform
Transform
FlipXZ(Transform)
Negates the X and Z scale.
public static void FlipXZ(this Transform transform)
Parameters
transform
Transform
FlipY(Transform)
Negates the Y scale.
public static void FlipY(this Transform transform)
Parameters
transform
Transform
FlipYZ(Transform)
Negates the Y and Z scale.
public static void FlipYZ(this Transform transform)
Parameters
transform
Transform
FlipZ(Transform)
Negates the Z scale.
public static void FlipZ(this Transform transform)
Parameters
transform
Transform
GetChildren(Transform)
public static List<Transform> GetChildren(this Transform transform)
Parameters
transform
Transform
Returns
Reset(Transform)
Resets the position, rotation, and local scale.
public static void Reset(this Transform transform)
Parameters
transform
Transform
ResetLocal(Transform)
Resets the ;local position, local rotation, and local scale.
public static void ResetLocal(this Transform transform)
Parameters
transform
Transform
ResetLocalPosition(Transform)
Sets the local position to 0, 0, 0.
public static void ResetLocalPosition(this Transform transform)
Parameters
transform
Transform
ResetLocalRotation(Transform)
Resets the local rotation to 0, 0, 0.
public static void ResetLocalRotation(this Transform transform)
Parameters
transform
Transform
ResetPosition(Transform)
Sets the position to 0, 0, 0.
public static void ResetPosition(this Transform transform)
Parameters
transform
Transform
ResetRotation(Transform)
Resets the rotation to 0, 0, 0.
public static void ResetRotation(this Transform transform)
Parameters
transform
Transform
ResetScale(Transform)
Resets the local scale of this transform in to 1 1 1.
public static void ResetScale(this Transform transform)
Parameters
transform
Transform
RotateAroundX(Transform, float)
Rotates the transform around the X axis.
public static void RotateAroundX(this Transform transform, float angle)
Parameters
RotateAroundY(Transform, float)
Rotates the transform around the Y axis.
public static void RotateAroundY(this Transform transform, float angle)
Parameters
RotateAroundZ(Transform, float)
Rotates the transform around the Z axis.
public static void RotateAroundZ(this Transform transform, float angle)
Parameters
ScaleByX(Transform, float)
Scale this transform in the X direction.
public static void ScaleByX(this Transform transform, float x)
Parameters
ScaleByXY(Transform, float)
Scale this transform in the X and Y directions.
public static void ScaleByXY(this Transform transform, float r)
Parameters
ScaleByXY(Transform, float, float)
Scale this transform in the X, Y direction.
public static void ScaleByXY(this Transform transform, float x, float y)
Parameters
ScaleByXYZ(Transform, float)
Scale this transform in the X, Y and Z directions.
public static void ScaleByXYZ(this Transform transform, float r)
Parameters
ScaleByXYZ(Transform, float, float, float)
Scale this transform in the X, Y and Z directions.
public static void ScaleByXYZ(this Transform transform, float x, float y, float z)
Parameters
ScaleByXZ(Transform, float)
Scale this transform in the X and Z directions.
public static void ScaleByXZ(this Transform transform, float r)
Parameters
ScaleByXZ(Transform, float, float)
Scale this transform in the X, Z directions.
public static void ScaleByXZ(this Transform transform, float x, float z)
Parameters
ScaleByY(Transform, float)
Scale this transform in the Y direction.
public static void ScaleByY(this Transform transform, float y)
Parameters
ScaleByYZ(Transform, float)
Scale this transform in the Y and Z directions.
public static void ScaleByYZ(this Transform transform, float r)
Parameters
ScaleByYZ(Transform, float, float)
Scale this transform in the Y and Z directions.
public static void ScaleByYZ(this Transform transform, float y, float z)
Parameters
ScaleByZ(Transform, float)
Scale this transform in the Z direction.
public static void ScaleByZ(this Transform transform, float z)
Parameters
SelfAndAllChildren(Transform)
A lazy enumerable of this objects transform, and all it's children down the hierarchy.
public static IEnumerable<Transform> SelfAndAllChildren(this Transform transform)
Parameters
transform
Transform
Returns
SetLocalRotationX(Transform, float)
Sets the local X rotation.
public static void SetLocalRotationX(this Transform transform, float angle)
Parameters
SetLocalRotationY(Transform, float)
Sets the local Y rotation.
public static void SetLocalRotationY(this Transform transform, float angle)
Parameters
SetLocalRotationZ(Transform, float)
Sets the local Z rotation.
public static void SetLocalRotationZ(this Transform transform, float angle)
Parameters
SetLocalX(Transform, float)
Sets the local X position of this transform.
public static void SetLocalX(this Transform transform, float x)
Parameters
SetLocalXY(Transform, float, float)
Sets the local X and Y position of this transform.
public static void SetLocalXY(this Transform transform, float x, float y)
Parameters
SetLocalXYZ(Transform, float, float, float)
Sets the local X, Y and Z position of this transform.
public static void SetLocalXYZ(this Transform transform, float x, float y, float z)
Parameters
SetLocalXZ(Transform, float, float)
Sets the local X and Z position of this transform.
public static void SetLocalXZ(this Transform transform, float x, float z)
Parameters
SetLocalY(Transform, float)
Sets the local Y position of this transform.
public static void SetLocalY(this Transform transform, float y)
Parameters
SetLocalYZ(Transform, float, float)
Sets the local Y and Z position of this transform.
public static void SetLocalYZ(this Transform transform, float y, float z)
Parameters
SetLocalZ(Transform, float)
Sets the local Z position of this transform.
public static void SetLocalZ(this Transform transform, float z)
Parameters
SetRotationX(Transform, float)
Sets the X rotation.
public static void SetRotationX(this Transform transform, float angle)
Parameters
SetRotationY(Transform, float)
Sets the Y rotation.
public static void SetRotationY(this Transform transform, float angle)
Parameters
SetRotationZ(Transform, float)
Sets the Z rotation.
public static void SetRotationZ(this Transform transform, float angle)
Parameters
SetScaleX(Transform, float)
Sets the local X scale of this transform.
public static void SetScaleX(this Transform transform, float x)
Parameters
SetScaleXY(Transform, float, float)
Sets the local X and Y scale of this transform.
public static void SetScaleXY(this Transform transform, float x, float y)
Parameters
SetScaleXYZ(Transform, float, float, float)
Sets the local X, Y and Z scale of this transform.
public static void SetScaleXYZ(this Transform transform, float x, float y, float z)
Parameters
SetScaleXZ(Transform, float, float)
Sets the local X and Z scale of this transform.
public static void SetScaleXZ(this Transform transform, float x, float z)
Parameters
SetScaleY(Transform, float)
Sets the local Y scale of this transform.
public static void SetScaleY(this Transform transform, float y)
Parameters
SetScaleYZ(Transform, float, float)
Sets the local Y and Z scale of this transform.
public static void SetScaleYZ(this Transform transform, float y, float z)
Parameters
SetScaleZ(Transform, float)
Sets the local Z scale of this transform.
public static void SetScaleZ(this Transform transform, float z)
Parameters
SetX(Transform, float)
Sets the X position of this transform.
public static void SetX(this Transform transform, float x)
Parameters
SetXY(Transform, float, float)
Sets the X and Y position of this transform.
public static void SetXY(this Transform transform, float x, float y)
Parameters
SetXYZ(Transform, float, float, float)
Sets the X, Y and Z position of this transform.
public static void SetXYZ(this Transform transform, float x, float y, float z)
Parameters
SetXZ(Transform, float, float)
Sets the X and Z position of this transform.
public static void SetXZ(this Transform transform, float x, float z)
Parameters
SetY(Transform, float)
Sets the Y position of this transform.
public static void SetY(this Transform transform, float y)
Parameters
SetYZ(Transform, float, float)
Sets the Y and Z position of this transform.
public static void SetYZ(this Transform transform, float y, float z)
Parameters
SetZ(Transform, float)
Sets the Z position of this transform.
public static void SetZ(this Transform transform, float z)
Parameters
Sort(Transform, Func<Transform, IComparable>)
public static void Sort(this Transform transform, Func<Transform, IComparable> sortFunction)
Parameters
transform
TransformsortFunction
Func<Transform, IComparable>
SortAlphabetically(Transform)
public static void SortAlphabetically(this Transform transform)
Parameters
transform
Transform
TranslateX(Transform, float)
Translates this transform along the X axis.
public static void TranslateX(this Transform transform, float x)
Parameters
TranslateXY(Transform, float, float)
Translates this transform along the X and Y axes.
public static void TranslateXY(this Transform transform, float x, float y)
Parameters
TranslateXYZ(Transform, float, float, float)
Translates this transform along the X, Y and Z axis.
public static void TranslateXYZ(this Transform transform, float x, float y, float z)
Parameters
TranslateXZ(Transform, float, float)
Translates this transform along the X and Z axes.
public static void TranslateXZ(this Transform transform, float x, float z)
Parameters
TranslateY(Transform, float)
Translates this transform along the Y axis.
public static void TranslateY(this Transform transform, float y)
Parameters
TranslateYZ(Transform, float, float)
Translates this transform along the Y and Z axes.
public static void TranslateYZ(this Transform transform, float y, float z)
Parameters
TranslateZ(Transform, float)
Translates this transform along the Z axis.
public static void TranslateZ(this Transform transform, float z)