Class CraftingMaterialTemplate
A raw material: ore, crystal, herb, fungus, wood. Stackable, sellable, and otherwise inert — it exists to be gathered and, later, crafted with.
[CreateAssetMenu(fileName = "New Crafting Material", menuName = "FishMMO/Item/Crafting Material", order = 1)]
public class CraftingMaterialTemplate : BaseItemTemplate, ICachedObject, ITooltip
- Inheritance
-
ObjectScriptableObjectCraftingMaterialTemplate
- Implements
- Inherited Members
-
ScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetEntityId()Object.MemberwiseClone()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
- Extension Methods
Remarks
The project had no concrete item type for a thing that is only carried: every BaseItemTemplate subclass was equipment or a consumable. Gathering nodes need something to drop, so the generated nodes (2026-10-10: generate placeholder resource items) drop these. No crafting system reads them yet; Family and Tier are the handles one will key on.
Fields
Description
Flavour line shown under the stats.
[TextArea(1, 3)]
public string Description
Field Value
Family
What kind of material: "Ore", "Crystal", "Herb", "Fungus", "Wood".
[Tooltip("What kind of material: Ore, Crystal, Herb, Fungus, Wood.")]
public string Family
Field Value
Tier
Rarity tier, 1 common … 4 rare.
[Tooltip("Rarity tier, 1 common to 4 rare.")]
[Range(1, 4)]
public int Tier
Field Value
Methods
BuildTooltip(TooltipContent, bool)
Describes the item, either as a kind of thing or as one the player is holding.
public override void BuildTooltip(TooltipContent content, bool describingInstance)
Parameters
contentTooltipContentThe content being assembled.
describingInstanceboolTrue when an instance's own rolled values follow.
Remarks
The distinction matters for anything that rolls. A template can only say what an item of this kind CAN be — "Attack Power 1 - 3" — while an instance knows what it rolled, and ItemGenerator writes that. Printing both put the range and the roll in the same tooltip under two different names, which reads as two separate bonuses.