Inherits MonoBehaviour.
§ ChangeType
| Enumerator |
|---|
| changeAdd | |
| changeRemove | |
| changeUpdate | |
§ AddBaker()
§ AddCamera()
§ AddDirtyCombinedMesh()
§ ForceBakeAllDirty()
| void MB2_LODManager.ForceBakeAllDirty |
( |
| ) |
|
§ GetCameras()
§ GetComponentInAncestor< T >()
| static T MB2_LODManager.GetComponentInAncestor< T > |
( |
Transform |
tt, |
|
|
bool |
highest = false |
|
) |
| |
|
static |
§ GetDistanceSqrToClosestPerspectiveCamera()
| float MB2_LODManager.GetDistanceSqrToClosestPerspectiveCamera |
( |
Vector3 |
pos | ) |
|
§ GetNextFrameCheckOffset()
| int MB2_LODManager.GetNextFrameCheckOffset |
( |
| ) |
|
§ GetStats()
| string MB2_LODManager.GetStats |
( |
| ) |
|
§ LODDestroy()
| void MB2_LODManager.LODDestroy |
( |
MB2_LOD |
lodComponent | ) |
|
§ Manager()
§ RemoveBaker()
§ RemoveCamera()
§ RemoveClustersIntersecting()
| void MB2_LODManager.RemoveClustersIntersecting |
( |
Bounds |
bnds | ) |
|
§ SetupHierarchy()
| void MB2_LODManager.SetupHierarchy |
( |
MB2_LOD |
lod | ) |
|
§ TranslateWorld()
| void MB2_LODManager.TranslateWorld |
( |
Vector3 |
translation | ) |
|
The purpose of this is so that a world can be "slipped" to the origin if the player has moved far from the origin to avoid floating point rounding problems.
This updates the the cluster bounds, and resets the lod positions if the world has been translated. Does NOT move the LOD game objects. These should be moved before TranslateWorld is called. This will move the combined meshes. This should be called in LateUpdate, after all LODs have been checked This is expensive so don't call it frequently.
- Parameters
-
§ bakers
§ baking_enabled
| bool MB2_LODManager.baking_enabled =true |
§ CHECK_INTEGRITY
| bool MB2_LODManager.CHECK_INTEGRITY = false |
|
static |
§ checkScheduler
§ combinedMeshPriorityComparer
§ ENABLED
| bool MB2_LODManager.ENABLED = true |
|
static |
§ frameInfo
§ ignoreLightmapping
| bool MB2_LODManager.ignoreLightmapping = true |
§ limbo
§ LOG_LEVEL
§ maxCombineTimePerFrame
| float MB2_LODManager.maxCombineTimePerFrame = .03f |
§ numBakersPerGC
| int MB2_LODManager.numBakersPerGC = 2 |
§ statAveCombinedMeshBakeTime
| float MB2_LODManager.statAveCombinedMeshBakeTime = .03f |
§ statLastBakeFrame
| int MB2_LODManager.statLastBakeFrame = 0 |
§ statLastCheckLODNeedToChangeTime
| float MB2_LODManager.statLastCheckLODNeedToChangeTime = 0 |
§ statLastCombinedMeshBakeTime
| float MB2_LODManager.statLastCombinedMeshBakeTime = 0f |
§ statLastGarbageCollectionTime
| float MB2_LODManager.statLastGarbageCollectionTime = 0f |
§ statLastGCFrame
| int MB2_LODManager.statLastGCFrame = 0 |
§ statLastMergeTime
| float MB2_LODManager.statLastMergeTime = 0 |
§ statLastNumBakes
| int MB2_LODManager.statLastNumBakes = 0 |
§ statLastSplitTime
| float MB2_LODManager.statLastSplitTime = 0 |
§ statMaxCombinedMeshBakeTime
| float MB2_LODManager.statMaxCombinedMeshBakeTime = 0f |
§ statMinCombinedMeshBakeTime
| float MB2_LODManager.statMinCombinedMeshBakeTime = 100f |
§ statNumDirty
| int MB2_LODManager.statNumDirty = 0 |
§ statNumMerge
| int MB2_LODManager.statNumMerge = 0 |
§ statNumSplit
| int MB2_LODManager.statNumSplit = 0 |
§ statTotalCheckLODNeedToChangeTime
| float MB2_LODManager.statTotalCheckLODNeedToChangeTime = 0 |
§ statTotalCombinedMeshBakeTime
| float MB2_LODManager.statTotalCombinedMeshBakeTime = .03f |
§ statTotalGarbageCollectionTime
| float MB2_LODManager.statTotalGarbageCollectionTime = 0f |
§ statTotalNumBakes
| int MB2_LODManager.statTotalNumBakes = 0 |
The documentation for this class was generated from the following file: