Photon Bolt Engine API  1.2.0.3
Public Member Functions | List of all members
Bolt.IPrefabPool Interface Reference
Inheritance diagram for Bolt.IPrefabPool:
Bolt.DefaultPrefabPool

Public Member Functions

void Destroy (UE.GameObject gameObject)
 This is called when Bolt wants to destroy the instance of an entity prefab. More...
 
UE.GameObject Instantiate (Bolt.PrefabId prefabId, UE.Vector3 position, UE.Quaternion rotation)
 This is called when bolt wants to create a new instance of an entity prefab. More...
 
UE.GameObject LoadPrefab (Bolt.PrefabId prefabId)
 Called by Bolt to inspect a prefab before instantiating it. The object returned from this method can be the prefab itself, it does not have to be a unique instance. More...
 

Member Function Documentation

◆ Destroy()

void Bolt.IPrefabPool.Destroy ( UE.GameObject  gameObject)

This is called when Bolt wants to destroy the instance of an entity prefab.

Parameters
gameObjectThe instance to destroy

Implemented in Bolt.DefaultPrefabPool.

◆ Instantiate()

UE.GameObject Bolt.IPrefabPool.Instantiate ( Bolt.PrefabId  prefabId,
UE.Vector3  position,
UE.Quaternion  rotation 
)

This is called when bolt wants to create a new instance of an entity prefab.

Parameters
prefabIdThe id of this prefab
positionThe position we want the instance instantiated at
rotationThe rotation we want the instance to take
Returns
The newly instantiate object, or null if a prefab with prefabId was not found

◆ LoadPrefab()

UE.GameObject Bolt.IPrefabPool.LoadPrefab ( Bolt.PrefabId  prefabId)

Called by Bolt to inspect a prefab before instantiating it. The object returned from this method can be the prefab itself, it does not have to be a unique instance.

Parameters
prefabIdThe id of the prefab we are looking for
Returns
A game object representing the prefab or an instance of the prefab