Skip to content

GameObjectContainerAsset

A GameObject container stored as a project asset, so any scene or prefab can share it.

Namespace: Jungle.Core Inherits: JungleScriptableObject, implements IItemContainer<GameObject>

Overview

Create from Jungle / Objects / GameObject Container. Holds GameObjects exactly like a GameObjectListContainer, with the same capacity and take/store processes, but lives in the Project window so objects in different scenes and prefabs reach the same group. Objects usually join it with Add To Container While Active; any container operation (Store, Take, Remove, Transfer) works on it too.

Each time you press Play it goes back to its starting objects (Items), because an asset cannot keep scene objects between sessions.

Properties

Property Type Description
list.items SmartGameObject Starting objects, each picked its own way. Read on first use.
list.capacity int Maximum number of items. -1 for unlimited.
list.takeProcess / list.storeProcess IProcess Optional processes run when taking or storing an item.

See Also