Voxel toolkit
The toolkit that lets you easily import .vox assets and have runtime API
Loading...
Searching...
No Matches
VoxelToolkit.Model Class Reference

Represents the imported model. More...

Inheritance diagram for VoxelToolkit.Model:

Public Member Functions

void SetVoxels (List< VoxelData > voxels)
 Sets the voxels to the model.
 

Properties

int VoxelsCount [get]
 Voxels count representing the model.
 
VoxelAsset ParentAsset [get, set]
 Parent asset of the model.
 
int ID [get, set]
 The unique id of the model.
 
Vector3Int Size [get, set]
 The model boundaries size.
 
VoxelData this[int index] [get]
 Provides access to the voxel by the index.
 

Detailed Description

Represents the imported model.

Member Function Documentation

◆ SetVoxels()

void VoxelToolkit.Model.SetVoxels ( List< VoxelData voxels)

Sets the voxels to the model.

Parameters
voxelsThe list of the voxels to be set

Property Documentation

◆ this[int index]

VoxelData VoxelToolkit.Model.this[int index]
get

Provides access to the voxel by the index.

Parameters
indexThe index of the voxel to be accessed

The documentation for this class was generated from the following file: