TransformExt.GetWiderBounds Method
Gets the bounds in the given transforms 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 GetWiderBounds(
this IEnumerable<Transform> transforms,
bool includeInactive = false
)
Parameters
- transforms
- Type: System.Collections.Generic.IEnumerable(Transform)
Transforms 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 IEnumerable(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 | transforms is null |