TransformExt.TransformBounds Method
Transforms a given Bounds object in local space using a Transform component.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Bounds TransformBounds(
this Transform transform,
Bounds localBounds
)
Parameters
- transform
- Type: Transform
Transform applied to the bounds - localBounds
- Type: Bounds
Bounds in local space
Return Value
Type: Bounds
Transformed bounds
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).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | transform is null |