Class ContentDef
One content definition — the data half of a prefab.
id is the stable identity (today: the prefab's Addressables address, which is what
saves and networking already store). values carries only what systems filter/sort/decide
on; the complete mirror of every component field lives in defs/<kind>.json, loaded on demand.
[Serializable]
public sealed class ContentDef
- Inheritance
-
objectContentDef
Fields
- components
Component type names present on the prefab — the composition that defines the definition's shape.
- icon
Addressables address of a representative icon, when one could be derived.
- prefab
Addressables address of the archetype prefab (the asset that must be loaded to spawn it).
- values
Queryable scalars (subset of the component values, plus derived fields).