Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumForUnity.CesiumTileExcluder Class Referenceabstract

The abstract base class for Cesium3DTileset tile excluders. More...

Inheritance diagram for CesiumForUnity.CesiumTileExcluder:

Public Member Functions

bool ShouldExclude (Cesium3DTile tile)
 Determines whether the given tile should be excluded from loading and rendering.
 

Protected Member Functions

virtual void OnEnable ()
 
virtual void OnDisable ()
 

Detailed Description

The abstract base class for Cesium3DTileset tile excluders.

By creating a class derived from CesiumTileExcluder, then adding it to a game object containing a Cesium3DTileset (or one of its parents), you can implement custom rules for excluding tiles in the Cesium3DTileset from loading and rendering.

Definition at line 14 of file CesiumTileExcluder.cs.

Member Function Documentation

◆ OnDisable()

virtual void CesiumForUnity.CesiumTileExcluder.OnDisable ( )
inlineprotectedvirtual

Definition at line 35 of file CesiumTileExcluder.cs.

◆ OnEnable()

virtual void CesiumForUnity.CesiumTileExcluder.OnEnable ( )
inlineprotectedvirtual

Definition at line 26 of file CesiumTileExcluder.cs.

◆ ShouldExclude()

bool CesiumForUnity.CesiumTileExcluder.ShouldExclude ( Cesium3DTile tile)
abstract

Determines whether the given tile should be excluded from loading and rendering.

If a tile is excluded, all of its children and other descendants in the bounding volume hierarchy will be excluded as well.

Parameters
tileThe tile to check. This instance is only valid for the duration of this call. Saving it and using it later will result in undefined behavior, including crashes.
Returns
True if the tile should be excluded, false if the tile should be loaded and rendered.

The documentation for this class was generated from the following file: