MeltingModelPart
A class in Root.Township, Alta.Blacksmithing.
Melting model that reads and writes its material through a PhysicalMaterialPart on the same object.
- Listed in Crafting and making
- Inherits or implements
MeltingModel
Constructors
| Member | What it is |
|---|---|
MeltingModelPart() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private PhysicalMaterialPart physicalMaterialPart | The part that holds this model's material. |
Properties
| Member | What it is |
|---|---|
override PhysicalMaterial PhysicalMaterial { get; } | The material of the linked PhysicalMaterialPart. |
Methods
| Member | What it is |
|---|---|
override void OnValidate() | Editor: finds the PhysicalMaterialPart on this object if not set. |
protected override void InternalSetup(PhysicalMaterial material) | Sets the material on the PhysicalMaterialPart. |