LayerProcGen v0.1.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
QueuedGameObjectDestruction

A GameObject destruction to enqueue to be performed on the main thread. More...

Inherits IQueuedAction.

Public Member Functions

void Process ()
 Called by MainThreadActionQueue.
 

Static Public Member Functions

static void Enqueue (TransformWrapper tr, bool destroyMeshes)
 Enqueue destruction on the main thread of the GameObject wrapped in the TransformWrapper.
 

Public Attributes

bool destroyMeshes
 
TransformWrapper transform
 

Detailed Description

A GameObject destruction to enqueue to be performed on the main thread.

Member Function Documentation

◆ Enqueue()

static void Enqueue ( TransformWrapper tr,
bool destroyMeshes )
static

Enqueue destruction on the main thread of the GameObject wrapped in the TransformWrapper.

Parameters
trThe TransformWrapper wrapping the Transform of the GameObject.
destroyMeshesIf true, MeshFilter components are searched for non-persistent meshes, and these will be destroyed too.

◆ Process()

void Process ( )

Called by MainThreadActionQueue.

Implements IQueuedAction.