Table of Contents

Class ToolkitArchetype

Namespace
Coherence.Toolkit.Archetypes
Assembly
Coherence.Toolkit.dll
public class ToolkitArchetype
Inheritance
ToolkitArchetype

Constructors

ToolkitArchetype()

public ToolkitArchetype()

Fields

OnLODChanged

public Action<int> OnLODChanged

Field Value

Action<int>

Properties

ArchetypeName

[Obsolete("Use CoherenceSync.ArchetypeName")]
public string ArchetypeName { get; }

Property Value

string

BoundComponents

public List<ArchetypeComponent> BoundComponents { get; }

Property Value

List<ArchetypeComponent>

CachedComponents

public List<Component> CachedComponents { get; }

Property Value

List<Component>

CoherenceSync

public CoherenceSync CoherenceSync { get; }

Property Value

CoherenceSync

LODLevels

public List<ArchetypeLODStep> LODLevels { get; }

Property Value

List<ArchetypeLODStep>

LastObservedLodLevel

public int LastObservedLodLevel { get; }

Property Value

int

Methods

AddLODLevel(bool)

public void AddLODLevel(bool fromEditor = false)

Parameters

fromEditor bool

GetBoundComponentByComponent(Component)

public ArchetypeComponent GetBoundComponentByComponent(Component component)

Parameters

component Component

Returns

ArchetypeComponent

GetLargestLOD()

public int GetLargestLOD()

Returns

int

GetTotalActiveBitsOfLOD(int)

public int GetTotalActiveBitsOfLOD(int lodStep)

Parameters

lodStep int

Returns

int

RemoveLodLevel(int)

public void RemoveLodLevel(int index)

Parameters

index int

SetLodLevelDistance(float, int)

public void SetLodLevelDistance(float newDistance, int lodStep)

Parameters

newDistance float
lodStep int

SetObservedLodLevel(int)

public void SetObservedLodLevel(int newObservedLodLevel)

Parameters

newObservedLodLevel int