Skip to main content

MeltingModelPart

A class in Root.Township, Alta.Blacksmithing.

Melting model that reads and writes its material through a PhysicalMaterialPart on the same object.

Constructors​

MemberWhat it is
MeltingModelPart()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private PhysicalMaterialPart physicalMaterialPartThe part that holds this model's material.

Properties​

MemberWhat it is
override PhysicalMaterial PhysicalMaterial { get; }The material of the linked PhysicalMaterialPart.

Methods​

MemberWhat 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.