Loading...
Searching...
No Matches
realvirtual.LODGenerator Class Reference
Contains methods for generating LODs (level of details) for game objects. More...
Static Public Member Functions | |
static LODGroup | GenerateLODs (LODGeneratorHelper generatorHelper) |
Generates the LODs and sets up a LOD Group for the LOD generator helper component. | |
static LODGroup | GenerateLODs (GameObject gameObject, LODLevel[] levels, bool autoCollectRenderers, SimplificationOptions simplificationOptions) |
Generates the LODs and sets up a LOD Group for the specified game object. | |
static LODGroup | GenerateLODs (GameObject gameObject, LODLevel[] levels, bool autoCollectRenderers, SimplificationOptions simplificationOptions, string saveAssetsPath) |
Generates the LODs and sets up a LOD Group for the specified game object. | |
static bool | DestroyLODs (LODGeneratorHelper generatorHelper) |
Destroys the generated LODs and LOD Group for the specified game object. | |
static bool | DestroyLODs (GameObject gameObject) |
Destroys the generated LODs and LOD Group for the specified game object. | |
Static Public Attributes | |
const string | LODParentGameObjectName |
The name of the game object where generated LODs are parented under. | |
const string | LODAssetParentPath |
The parent path for generated LOD assets. | |
Detailed Description
Contains methods for generating LODs (level of details) for game objects.
Member Function Documentation
◆ DestroyLODs() [1/2]
|
static |
Destroys the generated LODs and LOD Group for the specified game object.
- Parameters
-
gameObject The game object to destroy LODs for.
- Returns
- If the LODs were successfully destroyed.
◆ DestroyLODs() [2/2]
|
static |
Destroys the generated LODs and LOD Group for the specified game object.
- Parameters
-
generatorHelper The LOD generator helper.
- Returns
- If the LODs were successfully destroyed.
◆ GenerateLODs() [1/3]
|
static |
Generates the LODs and sets up a LOD Group for the specified game object.
- Parameters
-
gameObject The game object to set up. levels The LOD levels to set up. autoCollectRenderers If the renderers under the game object and any children should be automatically collected. Enabling this will ignore any renderers defined under each LOD level. simplificationOptions The mesh simplification options.
- Returns
- The generated LOD Group.
◆ GenerateLODs() [2/3]
|
static |
Generates the LODs and sets up a LOD Group for the specified game object.
- Parameters
-
gameObject The game object to set up. levels The LOD levels to set up. autoCollectRenderers If the renderers under the game object and any children should be automatically collected. Enabling this will ignore any renderers defined under each LOD level. simplificationOptions The mesh simplification options. saveAssetsPath The path to where the generated assets should be saved. Can be null or empty to use the default path.
- Returns
- The generated LOD Group.
◆ GenerateLODs() [3/3]
|
static |
Generates the LODs and sets up a LOD Group for the LOD generator helper component.
- Parameters
-
generatorHelper The LOD generator helper.
- Returns
- The generated LOD Group.
Member Data Documentation
◆ LODAssetParentPath
|
static |
The parent path for generated LOD assets.
◆ LODParentGameObjectName
|
static |
The name of the game object where generated LODs are parented under.