Table of Contents

Struct SerializableVoxelIndex

Unity-serializable topology-local voxel index.

[Serializable]
public struct SerializableVoxelIndex
Inherited Members

Constructors

SerializableVoxelIndex(int, int, int)

Creates a serializable topology-local voxel index.

public SerializableVoxelIndex(int x, int y, int z)

Parameters

x int

The local X index.

y int

The local Y index.

z int

The local Z index.

Properties

X

Gets the local X index.

public readonly int X { get; }

Property Value

int

Y

Gets the local Y index.

public readonly int Y { get; }

Property Value

int

Z

Gets the local Z index.

public readonly int Z { get; }

Property Value

int

Methods

FromVoxelIndex(VoxelIndex)

Creates a serializable value from a runtime voxel index.

public static SerializableVoxelIndex FromVoxelIndex(VoxelIndex index)

Parameters

index VoxelIndex

The runtime voxel index.

Returns

SerializableVoxelIndex

The serializable index.

ToVoxelIndex()

Converts this value to a runtime voxel index.

public readonly VoxelIndex ToVoxelIndex()

Returns

VoxelIndex

The runtime voxel index.