LODGroupExt.GetVisibleLevel Method

Gets the LOD level index that should be enabled from a specific view.

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

Syntax

C#

public static int GetVisibleLevel(
	this LODGroup lodGroup,
	Camera camera
)

Parameters

 

lodGroup
Type: LODGroup
Component to check
camera
Type: Camera
Camera to use as point of view

Return Value

Type: Int32
LOD level index that should be enabled

Usage Note

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

LODGroupExt Class
UltimateXR.Extensions.Unity.Render Namespace