Table of Contents

Class VoxelChunk

Namespace
VoxelPlayground.Engine
Assembly
VoxEngine.dll
[BurstCompile]
public class VoxelChunk : MonoBehaviour
Inheritance
object
VoxelChunk
Extension Methods

Fields

chunkCoordinate

public Vector3 chunkCoordinate

Field Value

Vector3

chunkCoordinate_int

public Vector3Int chunkCoordinate_int

Field Value

Vector3Int

collisionCoroutineCount

public int collisionCoroutineCount

Field Value

int

HideMeshSideFlag

public HideSide HideMeshSideFlag

Field Value

HideSide

lastTimeUpdated

public float lastTimeUpdated

Field Value

float

max

public int3 max

Field Value

int3

meshRenderer

public MeshRenderer meshRenderer

Field Value

MeshRenderer

min

public int3 min

Field Value

int3

OnSpeicalEffectProduced

public Action<VoxelVolume, NativeArray<int4>> OnSpeicalEffectProduced

Field Value

Action<VoxelVolume, NativeArray<int4>>

trans

public Transform trans

Field Value

Transform

updateMeshDispatched

public bool updateMeshDispatched

Field Value

bool

voxelCountsPerAxis

public int3 voxelCountsPerAxis

Field Value

int3

Properties

chunkState

public ChunkState chunkState { get; set; }

Property Value

ChunkState

DataOwner

public VoxelVolume DataOwner { get; }

Property Value

VoxelVolume

Meshes

public Mesh[] Meshes { get; }

Property Value

Mesh[]

NeedSpreadTick

public bool NeedSpreadTick { get; set; }

Property Value

bool

Methods

CheckAsyncJobComplete()

public void CheckAsyncJobComplete()

CheckEmpty()

public bool CheckEmpty()

Returns

bool

CollectTick()

public void CollectTick()

DispatchTick()

public JobHandle DispatchTick()

Returns

JobHandle

Equals(VoxelChunk)

public bool Equals(VoxelChunk other)

Parameters

other VoxelChunk

Returns

bool

GetBounds_local()

public Bounds GetBounds_local()

Returns

Bounds

GetStartPos()

public Vector3Int GetStartPos()

Returns

Vector3Int

Init(int3, Vector3Int, VoxelVolume, float, int)

public void Init(int3 voxelCountsPerAxis, Vector3Int chunkCoordinate_int, VoxelVolume voxelVolume, float isoLevel, int lodCount)

Parameters

voxelCountsPerAxis int3
chunkCoordinate_int Vector3Int
voxelVolume VoxelVolume
isoLevel float
lodCount int

InitNeighborsList()

public void InitNeighborsList()

IsGeneratingCollision()

public bool IsGeneratingCollision()

Returns

bool

MarkDirty()

public void MarkDirty()

SetDirty()

public void SetDirty()

SetDirtyDeferred()

public void SetDirtyDeferred()

SetLayer(int)

public void SetLayer(int layer)

Parameters

layer int

SetMeshEnable(bool)

public void SetMeshEnable(bool enable)

Parameters

enable bool

SetRendererEnable(bool)

public void SetRendererEnable(bool value)

Parameters

value bool