The abstract base class for Cesium3DTileset tile excluders.
More...
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.
◆ OnDisable()
virtual void CesiumForUnity.CesiumTileExcluder.OnDisable |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ OnEnable()
virtual void CesiumForUnity.CesiumTileExcluder.OnEnable |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ 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
-
tile | The 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: