GameObjectCreatorValueAsset¶
ScriptableObject storing a shared GameObjectCreator reference.
Namespace: Jungle.Objects
Inherits: ValueAsset<GameObjectCreator> → ScriptableObject
Overview¶
Use GameObjectCreatorValueAsset when multiple components — spawners, commands, pooled effects — need to share the same creator (typically a PooledObjectCreator or InstanceObjectCreator) across scenes or prefabs. Create the asset with Create > Jungle > Objects > GameObject Creator Value, assign a creator, and reference the asset from any IGameObjectCreatorValue field.
Serialized fields¶
| Field | Type | Description |
|---|---|---|
value |
GameObjectCreator |
The shared creator reference. |
Public API¶
| Member | Description |
|---|---|
Value() |
Returns the stored creator. |
SetValue(GameObjectCreator) |
Replaces the stored creator. |
Related¶
GameObjectCreatorValueFromAsset — serializable IGameObjectCreatorValue that reads from this asset. Use it in [SerializeReference] fields to wire a component to a shared creator without a hard scene link.