Represents the voxel asset.
More...
|
ReadonlyArray< Material > | Palette [get] |
| Allows access to the palette of the asset.
|
|
HierarchyNode | HierarchyRoot [get, set] |
| The root object of the hierarchy.
|
|
string | Version [get, set] |
| The version of the asset.
|
|
string | InputSource [get, set] |
| The way the asset was imported.
|
|
int | LayersCount [get] |
| The count of layers in the asset.
|
|
List< Model > | Models [get] |
| Provides models contained in the asset.
|
|
Represents the voxel asset.
◆ AddLayer()
void VoxelToolkit.VoxelAsset.AddLayer |
( |
Layer |
layer | ) |
|
Adds the layer to the asset.
- Parameters
-
layer | The layer to be added |
◆ FindLayerById()
Layer VoxelToolkit.VoxelAsset.FindLayerById |
( |
int |
id | ) |
|
Returns a layer by it's ID.
- Parameters
-
id | The ID of the layer to be found |
- Returns
- The layer with a specified ID
◆ GetLayer()
Layer VoxelToolkit.VoxelAsset.GetLayer |
( |
int |
index | ) |
|
Returns the layer by its index.
- Parameters
-
index | The index of the layer to return |
- Returns
◆ GetPaletteMaterial()
Material VoxelToolkit.VoxelAsset.GetPaletteMaterial |
( |
int |
index | ) |
|
Returns the material from the palette.
- Parameters
-
index | The index of the material |
- Returns
- Material with the index
- Exceptions
-
Exception | Throws exception if the index is less than 0 or more than 255 |
◆ SetPaletteMaterial()
void VoxelToolkit.VoxelAsset.SetPaletteMaterial |
( |
int |
index, |
|
|
Material |
material |
|
) |
| |
Sets the material into the palette.
- Parameters
-
index | The index of the materials to be set |
material | The material to be set |
- Exceptions
-
Exception | Throws exception if the index is less than 0 or more than 255 |
◆ Models
List<Model> VoxelToolkit.VoxelAsset.Models |
|
get |
Provides models contained in the asset.
- Returns
- The models of the asset
The documentation for this class was generated from the following file:
- Voxel Toolkit/Scripts/Assets/VoxelAsset.cs