TransformExt.GetWiderBoundsInChildren Method
Gets the bounds in the given transform’s children with the largest squared length of the bounds size vector.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Bounds GetWiderBoundsInChildren(
this Transform transform,
bool includeInactive = false
)
Parameters
- transform
- Type: Transform
Transform to process all children of - includeInactive (Optional)
- Type: System.Boolean
Whether to include inactive MeshRenderers
Return Value
Type: Bounds
Bounds with the largest squared length size vector
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 |