Table of Contents

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

List<Transform>

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

transform Transform
angle float

RotateAroundY(Transform, float)

Rotates the transform around the Y axis.

public static void RotateAroundY(this Transform transform, float angle)

Parameters

transform Transform
angle float

RotateAroundZ(Transform, float)

Rotates the transform around the Z axis.

public static void RotateAroundZ(this Transform transform, float angle)

Parameters

transform Transform
angle float

ScaleByX(Transform, float)

Scale this transform in the X direction.

public static void ScaleByX(this Transform transform, float x)

Parameters

transform Transform
x float

ScaleByXY(Transform, float)

Scale this transform in the X and Y directions.

public static void ScaleByXY(this Transform transform, float r)

Parameters

transform Transform
r float

ScaleByXY(Transform, float, float)

Scale this transform in the X, Y direction.

public static void ScaleByXY(this Transform transform, float x, float y)

Parameters

transform Transform
x float
y float

ScaleByXYZ(Transform, float)

Scale this transform in the X, Y and Z directions.

public static void ScaleByXYZ(this Transform transform, float r)

Parameters

transform Transform
r float

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

transform Transform
x float
y float
z float

ScaleByXZ(Transform, float)

Scale this transform in the X and Z directions.

public static void ScaleByXZ(this Transform transform, float r)

Parameters

transform Transform
r float

ScaleByXZ(Transform, float, float)

Scale this transform in the X, Z directions.

public static void ScaleByXZ(this Transform transform, float x, float z)

Parameters

transform Transform
x float
z float

ScaleByY(Transform, float)

Scale this transform in the Y direction.

public static void ScaleByY(this Transform transform, float y)

Parameters

transform Transform
y float

ScaleByYZ(Transform, float)

Scale this transform in the Y and Z directions.

public static void ScaleByYZ(this Transform transform, float r)

Parameters

transform Transform
r float

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

transform Transform
y float
z float

ScaleByZ(Transform, float)

Scale this transform in the Z direction.

public static void ScaleByZ(this Transform transform, float z)

Parameters

transform Transform
z float

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

IEnumerable<Transform>

SetLocalRotationX(Transform, float)

Sets the local X rotation.

public static void SetLocalRotationX(this Transform transform, float angle)

Parameters

transform Transform
angle float

SetLocalRotationY(Transform, float)

Sets the local Y rotation.

public static void SetLocalRotationY(this Transform transform, float angle)

Parameters

transform Transform
angle float

SetLocalRotationZ(Transform, float)

Sets the local Z rotation.

public static void SetLocalRotationZ(this Transform transform, float angle)

Parameters

transform Transform
angle float

SetLocalX(Transform, float)

Sets the local X position of this transform.

public static void SetLocalX(this Transform transform, float x)

Parameters

transform Transform
x float

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

transform Transform
x float
y float

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

transform Transform
x float
y float
z float

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

transform Transform
x float
z float

SetLocalY(Transform, float)

Sets the local Y position of this transform.

public static void SetLocalY(this Transform transform, float y)

Parameters

transform Transform
y float

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

transform Transform
y float
z float

SetLocalZ(Transform, float)

Sets the local Z position of this transform.

public static void SetLocalZ(this Transform transform, float z)

Parameters

transform Transform
z float

SetRotationX(Transform, float)

Sets the X rotation.

public static void SetRotationX(this Transform transform, float angle)

Parameters

transform Transform
angle float

SetRotationY(Transform, float)

Sets the Y rotation.

public static void SetRotationY(this Transform transform, float angle)

Parameters

transform Transform
angle float

SetRotationZ(Transform, float)

Sets the Z rotation.

public static void SetRotationZ(this Transform transform, float angle)

Parameters

transform Transform
angle float

SetScaleX(Transform, float)

Sets the local X scale of this transform.

public static void SetScaleX(this Transform transform, float x)

Parameters

transform Transform
x float

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

transform Transform
x float
y float

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

transform Transform
x float
y float
z float

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

transform Transform
x float
z float

SetScaleY(Transform, float)

Sets the local Y scale of this transform.

public static void SetScaleY(this Transform transform, float y)

Parameters

transform Transform
y float

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

transform Transform
y float
z float

SetScaleZ(Transform, float)

Sets the local Z scale of this transform.

public static void SetScaleZ(this Transform transform, float z)

Parameters

transform Transform
z float

SetX(Transform, float)

Sets the X position of this transform.

public static void SetX(this Transform transform, float x)

Parameters

transform Transform
x float

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

transform Transform
x float
y float

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

transform Transform
x float
y float
z float

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

transform Transform
x float
z float

SetY(Transform, float)

Sets the Y position of this transform.

public static void SetY(this Transform transform, float y)

Parameters

transform Transform
y float

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

transform Transform
y float
z float

SetZ(Transform, float)

Sets the Z position of this transform.

public static void SetZ(this Transform transform, float z)

Parameters

transform Transform
z float

Sort(Transform, Func<Transform, IComparable>)

public static void Sort(this Transform transform, Func<Transform, IComparable> sortFunction)

Parameters

transform Transform
sortFunction 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

transform Transform
x float

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

transform Transform
x float
y float

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

transform Transform
x float
y float
z float

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

transform Transform
x float
z float

TranslateY(Transform, float)

Translates this transform along the Y axis.

public static void TranslateY(this Transform transform, float y)

Parameters

transform Transform
y float

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

transform Transform
y float
z float

TranslateZ(Transform, float)

Translates this transform along the Z axis.

public static void TranslateZ(this Transform transform, float z)

Parameters

transform Transform
z float