RendererExt.CalculateBounds Method

Calculates the Bounds encapsulating a set of renderers.

Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Bounds CalculateBounds(
	this IEnumerable<Renderer> renderers
)

Parameters

 

renderers
Type: System.Collections.Generic.IEnumerable(Renderer)
Renderers to compute the bounds for

Return Value

Type: Bounds
Bounds encapsulating all renderers

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(Renderer). 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

RendererExt Class
UltimateXR.Extensions.Unity.Render Namespace