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

Represents the shape object which consists of a certain number of VoxelToolkit.Model. More...

Inheritance diagram for VoxelToolkit.Shape:
VoxelToolkit.HierarchyNode

Public Member Functions

void AddModel (Model model)
 Adds the model to the shape.
 
void RemoveModel (Model model)
 Removes a model from the shape.
 
void RemoveModelAt (int index)
 Removes a model by the index.
 

Properties

int ModelsCount [get]
 Number of models in the shape.
 
Model this[int index] [get]
 Provides access to a model by an index.
 
List< ModelModels [get]
 Returns copy of the models list.
 
- Properties inherited from VoxelToolkit.HierarchyNode
int ID [get]
 Element's unique ID.
 
virtual ScriptableObject[] RelatedObjects [get]
 The related objects of the node.
 

Detailed Description

Represents the shape object which consists of a certain number of VoxelToolkit.Model.

Member Function Documentation

◆ AddModel()

void VoxelToolkit.Shape.AddModel ( Model  model)

Adds the model to the shape.

Parameters
modelThe model to be added

◆ RemoveModel()

void VoxelToolkit.Shape.RemoveModel ( Model  model)

Removes a model from the shape.

Parameters
modelModel to be removed

◆ RemoveModelAt()

void VoxelToolkit.Shape.RemoveModelAt ( int  index)

Removes a model by the index.

Parameters
indexThe index of the model to be removed

Property Documentation

◆ this[int index]

Model VoxelToolkit.Shape.this[int index]
get

Provides access to a model by an index.

Parameters
indexThe index of the model to be accessed

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