Class ToolkitArchetype
- Namespace
- Coherence.Toolkit.Archetypes
- Assembly
- Coherence.Toolkit.dll
public class ToolkitArchetype
- Inheritance
-
ToolkitArchetype
Constructors
public ToolkitArchetype()
Fields
public Action<int> OnLODChanged
Field Value
- Action<int>
Properties
public string ArchetypeName { get; }
Property Value
- string
public List<ArchetypeComponent> BoundComponents { get; }
Property Value
- List<ArchetypeComponent>
public List<Component> CachedComponents { get; }
Property Value
- List<Component>
public CoherenceSync CoherenceSync { get; }
Property Value
- CoherenceSync
public List<ArchetypeLODStep> LODLevels { get; }
Property Value
- List<ArchetypeLODStep>
public int LastObservedLodLevel { get; }
Property Value
- int
Methods
public void AddLODLevel(bool fromEditor = false)
Parameters
fromEditor
bool
public ArchetypeComponent GetBoundComponentByComponent(Component component)
Parameters
component
Component
Returns
- ArchetypeComponent
public int GetLargestLOD()
Returns
- int
public int GetTotalActiveBitsOfLOD(int lodStep)
Parameters
lodStep
int
Returns
- int
public void RemoveLodLevel(int index)
Parameters
index
int
public void SetLodLevelDistance(float newDistance, int lodStep)
Parameters
newDistance
float
lodStep
int
public void SetObservedLodLevel(int newObservedLodLevel)
Parameters
newObservedLodLevel
int