VoxelBlockyType¶
Inherits: Resource
Warning
This class is marked as experimental. It is subject to likely change or possible removal in future versions. Use at your own discretion.
Properties:¶
| Type | Name | Default |
|---|---|---|
| Array | _variant_models_data | [] |
| VoxelBlockyAttribute[] | attributes | [] |
| VoxelBlockyModel | base_model | |
| StringName | unique_name | &"unnamed" |
Methods:¶
| Return | Signature |
|---|---|
| VoxelBlockyAttribute | get_rotation_attribute ( ) const |
| void | set_variant_model ( Array key, VoxelBlockyModel model ) |
Constants:¶
- MAX_ATTRIBUTES = 4
Property Descriptions¶
Array _variant_models_data = []¶
(This property has no documentation)
VoxelBlockyAttribute[] attributes = []¶
(This property has no documentation)
VoxelBlockyModel base_model¶
(This property has no documentation)
StringName unique_name = &"unnamed"¶
(This property has no documentation)
Method Descriptions¶
VoxelBlockyAttribute get_rotation_attribute( )¶
(This method has no documentation)
void set_variant_model( Array key, VoxelBlockyModel model )¶
Explicitely sets which model to use for a given combination of attributes (key).
If you have attributes that automatically generate variants (such as rotations), you are expected to only set models for the default value of such attributes. Other models will not be preserved. This is because the default value will be used as a reference to generate the other models.
Generated on Jan 26, 2026