TransformExtensions

Static Class in Zigurous.Utility

Declaration

public static class TransformExtensions

Extension Methods

HasChangedInHierarchyDetermines if the transform or any of its parents has changed since the last time the flag was set to false.
CenterPositionOfChildrenCalculates the center position of the transform's children.
AveragePositionOfChildrenCalculates the average position of the transform's children.
ResetResets the position, rotation, and scale of the transform.
ResetLocalResets the local position, rotation, and scale of the transform.
SetPositionXSets the position of the transform in the x-axis.
SetPositionYSets the position of the transform in the y-axis.
SetPositionZSets the position of the transform in the z-axis.
SetLocalPositionXSets the local position of the transform in the x-axis.
SetLocalPositionYSets the local position of the transform in the y-axis.
SetLocalPositionZSets the local position of the transform in the z-axis.
SetEulerXSets the euler angles of the transform in the x-axis.
SetEulerYSets the euler angles of the transform in the y-axis.
SetEulerZSets the euler angles of the transform in the z-axis.
SetLocalEulerXSets the local euler angles of the transform in the x-axis.
SetLocalEulerYSets the local euler angles of the transform in the y-axis.
SetLocalEulerZSets the local euler angles of the transform in the z-axis.
SetScaleXSets the scale of the transform in the x-axis.
SetScaleYSets the scale of the transform in the y-axis.
SetScaleZSets the scale of the transform in the z-axis.