TransformExt.ApplyMirroring Method (Transform, Vector3, Vector3, 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,
	Vector3 mirrorPosition,
	Vector3 mirrorNormal,
	TransformExt.MirrorType mirrorType,
	bool rotate = true,
	bool reposition = true
)

Parameters

 

self
Type: Transform
Transform to apply mirroring to
mirrorPosition
Type: Vector3
Mirror position
mirrorNormal
Type: Vector3
Mirror normal
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