MeshBaker
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
MB2_LOD Class Reference

Inherits MonoBehaviour.

Classes

class  LOD
 
class  MB2_LODDistToCamComparer
 

Public Types

enum  SwitchDistanceSetup { SwitchDistanceSetup.notSetup, SwitchDistanceSetup.error, SwitchDistanceSetup.setup }
 

Public Member Functions

void SetWasDestroyedFlag ()
 
void Start ()
 
string GetStatusMessage ()
 
void _ResetPositionMarker ()
 
LODCombinedMesh GetCombiner ()
 
void SetCombiner (LODCombinedMesh c)
 
Vector3 GetHierarchyPosition ()
 
void AdjustNextLevelIndex (int newIdx)
 
int GetGameObjectID (int idx)
 
GameObject GetRendererGameObject (int idx)
 
int GetNumVerts (int idx)
 
bool CalculateSwitchDistances (float fieldOfView, bool showWarnings)
 
void Clear ()
 
void CheckIfLODsNeedToChange ()
 
void ForceRemove ()
 
void ForceAdd ()
 
void OnBakeRemoved ()
 
void OnBakeAdded ()
 
void OnBakeUpdated ()
 
void OnRemoveFromQueue ()
 
void OnAddToQueue ()
 
bool ArePrototypesSetup ()
 
MB2_LODManager.BakerPrototype GetBaker (MB2_LODManager.BakerPrototype[] allPrototypes, bool ignoreLightmapping)
 
void SetupHierarchy (MB2_LODManager.BakerPrototype[] allPrototypes, bool ignoreLightmapping)
 
MB2_LOD GetHierarchyRoot ()
 
override string ToString ()
 
void CheckState (bool exInCombined, bool exInQueue, MB2_LODOperation exAction, int exNextIdx, int exCurrentIdx)
 Used by the test harness. More...
 

Static Public Member Functions

static bool GetActiveSelf (GameObject go)
 
static void SetActiveSelf (GameObject go, bool isActive)
 

Public Attributes

MB2_LogLevel LOG_LEVEL = MB2_LogLevel.info
 
LODLog myLog
 
string bakerLabel = ""
 
MB_RenderType renderType = MB_RenderType.meshRenderer
 
int forceToLevel = -1
 The force to level. More...
 
bool bakeIntoCombined = true
 
LOD [] levels
 
MB2_LODOperation action = MB2_LODOperation.none
 

Properties

float distanceSquaredToClosestCamera [get]
 
int currentLevelIdx [get]
 
int nextLevelIdx [get]
 
bool isInCombined [get]
 
bool isInQueue [get]
 

Member Enumeration Documentation

§ SwitchDistanceSetup

Enumerator
notSetup 
error 
setup 

Member Function Documentation

§ _ResetPositionMarker()

void MB2_LOD._ResetPositionMarker ( )

§ AdjustNextLevelIndex()

void MB2_LOD.AdjustNextLevelIndex ( int  newIdx)

§ ArePrototypesSetup()

bool MB2_LOD.ArePrototypesSetup ( )

§ CalculateSwitchDistances()

bool MB2_LOD.CalculateSwitchDistances ( float  fieldOfView,
bool  showWarnings 
)

§ CheckIfLODsNeedToChange()

void MB2_LOD.CheckIfLODsNeedToChange ( )

§ CheckState()

void MB2_LOD.CheckState ( bool  exInCombined,
bool  exInQueue,
MB2_LODOperation  exAction,
int  exNextIdx,
int  exCurrentIdx 
)

Used by the test harness.

Compares expected values to current values.

§ Clear()

void MB2_LOD.Clear ( )

§ ForceAdd()

void MB2_LOD.ForceAdd ( )

§ ForceRemove()

void MB2_LOD.ForceRemove ( )

§ GetActiveSelf()

static bool MB2_LOD.GetActiveSelf ( GameObject  go)
static

§ GetBaker()

MB2_LODManager.BakerPrototype MB2_LOD.GetBaker ( MB2_LODManager.BakerPrototype []  allPrototypes,
bool  ignoreLightmapping 
)

§ GetCombiner()

LODCombinedMesh MB2_LOD.GetCombiner ( )

§ GetGameObjectID()

int MB2_LOD.GetGameObjectID ( int  idx)

§ GetHierarchyPosition()

Vector3 MB2_LOD.GetHierarchyPosition ( )

§ GetHierarchyRoot()

MB2_LOD MB2_LOD.GetHierarchyRoot ( )

§ GetNumVerts()

int MB2_LOD.GetNumVerts ( int  idx)

§ GetRendererGameObject()

GameObject MB2_LOD.GetRendererGameObject ( int  idx)

§ GetStatusMessage()

string MB2_LOD.GetStatusMessage ( )

§ OnAddToQueue()

void MB2_LOD.OnAddToQueue ( )

§ OnBakeAdded()

void MB2_LOD.OnBakeAdded ( )

§ OnBakeRemoved()

void MB2_LOD.OnBakeRemoved ( )

§ OnBakeUpdated()

void MB2_LOD.OnBakeUpdated ( )

§ OnRemoveFromQueue()

void MB2_LOD.OnRemoveFromQueue ( )

§ SetActiveSelf()

static void MB2_LOD.SetActiveSelf ( GameObject  go,
bool  isActive 
)
static

§ SetCombiner()

void MB2_LOD.SetCombiner ( LODCombinedMesh  c)

§ SetupHierarchy()

void MB2_LOD.SetupHierarchy ( MB2_LODManager.BakerPrototype []  allPrototypes,
bool  ignoreLightmapping 
)

§ SetWasDestroyedFlag()

void MB2_LOD.SetWasDestroyedFlag ( )

§ Start()

void MB2_LOD.Start ( )

§ ToString()

override string MB2_LOD.ToString ( )

Member Data Documentation

§ action

§ bakeIntoCombined

bool MB2_LOD.bakeIntoCombined = true

§ bakerLabel

string MB2_LOD.bakerLabel = ""

§ forceToLevel

int MB2_LOD.forceToLevel = -1

The force to level.

forces the LOD into a particular level. If this setting is -1 it is ignored. otherwise the LOD is kept at the specified level.

§ levels

LOD [] MB2_LOD.levels

§ LOG_LEVEL

MB2_LogLevel MB2_LOD.LOG_LEVEL = MB2_LogLevel.info

§ myLog

LODLog MB2_LOD.myLog

§ renderType

MB_RenderType MB2_LOD.renderType = MB_RenderType.meshRenderer

Property Documentation

§ currentLevelIdx

int MB2_LOD.currentLevelIdx
get

§ distanceSquaredToClosestCamera

float MB2_LOD.distanceSquaredToClosestCamera
get

§ isInCombined

bool MB2_LOD.isInCombined
get

§ isInQueue

bool MB2_LOD.isInQueue
get

§ nextLevelIdx

int MB2_LOD.nextLevelIdx
get

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