reckfellENGINE

VoxelBlockyLibrary

Contains a list of models that can be used by VoxelMesherBlocky.

On this page
class VoxelBlockyLibraryReckfellSharpInherits VoxelBlockyLibraryBase

Contains a list of models that can be used by VoxelMesherBlocky.

Provides a list of models that can be used by VoxelMesherBlocky. Each model corresponds to an ID in voxel data, and is generally defined from a mesh. Some extra properties can also be defined, such as how sides get culled by neighbor voxels, or how it is treated by some functionality of the voxel engine. If you create this library from code, it needs to be baked at the end using the VoxelBlockyLibraryBase.Bake function. The first model (at index 0) is conventionally used for "air" or "empty".

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

VoxelBlockyLibraryConstructor
# VoxelBlockyLibrary
C#
public VoxelBlockyLibrary();

Properties1

ModelsProperty
# Models
C#
public Reckfell.Collections.Array<VoxelBlockyModel> Models { get; set; }

Array of all the models. The index of each model corresponds to the value representing them in voxel data's TYPE channel.

Methods5

AddModelint
# AddModel
C#
public int AddModel(VoxelBlockyModel model);

Adds a model to the library. Returns its index, which will be the value of voxels representing it.

Parameters
NameTypeDefault
modelVoxelBlockyModel—
Returns int
GetModelVoxelBlockyModel
# GetModel
C#
public VoxelBlockyModel GetModel(uint index);

Gets a model from its index.

Parameters
NameTypeDefault
indexuint—
Returns VoxelBlockyModel
GetModelIndexFromResourceNameint
# GetModelIndexFromResourceName
C#
public int GetModelIndexFromResourceName(string name);

Finds the index of the first model having the specified resource name. If not found, returns null.

Parameters
NameTypeDefault
namestring—
Returns int
GetModelsReckfell.Collections.Array<VoxelBlockyModel>
# GetModels
C#
public Reckfell.Collections.Array<VoxelBlockyModel> GetModels();
Returns Reckfell.Collections.Array<VoxelBlockyModel>
SetModelsvoid
# SetModels
C#
public void SetModels(Reckfell.Collections.Array<VoxelBlockyModel> _UnnamedArg0);
Parameters
NameTypeDefault
_UnnamedArg0Reckfell.Collections.Array<VoxelBlockyModel>—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.