VoxelBlockyType
A Reckfell C# SDK type.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelBlockyTypeConstructor
public VoxelBlockyType();Properties4
AttributesProperty
public Reckfell.Collections.Array<VoxelBlockyAttribute> Attributes { get; set; }BaseModelProperty
public VoxelBlockyModel BaseModel { get; set; }UniqueNameProperty
public StringName UniqueName { get; set; }_VariantModelsDataProperty
public Reckfell.Collections.Array _VariantModelsData { get; set; }Methods8
GetAttributesReckfell.Collections.Array<VoxelBlockyAttribute>
public Reckfell.Collections.Array<VoxelBlockyAttribute> GetAttributes();Returns
Reckfell.Collections.Array<VoxelBlockyAttribute>GetBaseModelVoxelBlockyModel
public VoxelBlockyModel GetBaseModel();Returns
VoxelBlockyModelGetRotationAttributeVoxelBlockyAttribute
public VoxelBlockyAttribute GetRotationAttribute();Returns
VoxelBlockyAttributeGetUniqueNameStringName
public StringName GetUniqueName();Returns
StringNameSetAttributesvoid
public void SetAttributes(Reckfell.Collections.Array<VoxelBlockyAttribute> attributes);| Name | Type | Default |
|---|---|---|
attributes | Reckfell.Collections.Array<VoxelBlockyAttribute> | — |
SetBaseModelvoid
public void SetBaseModel(VoxelBlockyModel model);| Name | Type | Default |
|---|---|---|
model | VoxelBlockyModel | — |
SetUniqueNamevoid
public void SetUniqueName(StringName name);| Name | Type | Default |
|---|---|---|
name | StringName | — |
SetVariantModelvoid
public void SetVariantModel(Reckfell.Collections.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.
| Name | Type | Default |
|---|---|---|
key | Reckfell.Collections.Array | — |
model | VoxelBlockyModel | — |
Fields and constants1
MaxAttributesField
public const long MaxAttributes = 4;Reckfell Engine documentationBack to top ↑