Skip to main content

LODZone

class ThaumielMapEditor.API.Components

Overview​

Properties​

NameTypeAccessDescription
IndexUInt32getGets the index of this ThaumielMapEditor.API.Components.LODZone within its ThaumielMapEditor.API.Data.SchematicData.
PrimitivestoUnloadList<PrimitiveType>getGets the list of UnityEngine.PrimitiveTypes that should be spawned and despawned when a LabApi.Features.Wrappers.Player enters or exits this zone.
SchematicSchematicDatagetGets the ThaumielMapEditor.API.Data.SchematicData this zone belongs to.

Methods​

SignatureReturnsDescription
Init(SchematicData, List<PrimitiveType>, UInt32)voidInitializes this ThaumielMapEditor.API.Components.LODZone instance and subscri…

Properties​

Index​

Type: UInt32 Access: get

Gets the index of this ThaumielMapEditor.API.Components.LODZone within its ThaumielMapEditor.API.Data.SchematicData.


PrimitivestoUnload​

Type: List<PrimitiveType> Access: get

Gets the list of UnityEngine.PrimitiveTypes that should be spawned and despawned when a LabApi.Features.Wrappers.Player enters or exits this zone.


Schematic​

Type: SchematicData Access: get

Gets the ThaumielMapEditor.API.Data.SchematicData this zone belongs to.


Methods​

Init​

Init
public void Init(
SchematicData schematic,
List<PrimitiveType> unload,
UInt32 index
)

Initializes this ThaumielMapEditor.API.Components.LODZone instance and subscribes to the trigger enter and exit events.

Parameters​

NameTypeDescription
schematicSchematicDataThe ThaumielMapEditor.API.Data.SchematicData this zone belongs to.
unloadList<PrimitiveType>The list of UnityEngine.PrimitiveTypes to spawn and despawn as players enter and exit.
indexUInt32The index of this zone within the schematic.