TransformExt.ApplyMirroring Method (Transform, Transform, UxrAxis, TransformExt.MirrorType, Boolean, Boolean)
Applies a mirroring to a transform.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static void ApplyMirroring(
this Transform self,
Transform mirror,
UxrAxis mirrorAxis,
TransformExt.MirrorType mirrorType,
bool rotate = true,
bool reposition = true
)
Parameters
- self
- Type: Transform
Transform to apply mirroring to - mirror
- Type: Transform
Mirror - mirrorAxis
- Type: UltimateXR.Core.Math.UxrAxis
Mirror axis - mirrorType
- Type: UltimateXR.Extensions.Unity.TransformExt.MirrorType
Which vectors to mirror. See TransformExt.MirrorType - rotate (Optional)
- Type: System.Boolean
Whether to rotate the object - reposition (Optional)
- Type: System.Boolean
Whether to translate the object
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Transform. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also
Reference
TransformExt Class
ApplyMirroring Overload
UltimateXR.Extensions.Unity Namespace