Photon Bolt Engine API 1.3

Public Member Functions | List of all members
Photon.Bolt.IPrefabPool Interface Reference
Inheritance diagram for Photon.Bolt.IPrefabPool:
Photon.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 (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 Photon.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

◆ Instantiate()

UE.GameObject Photon.Bolt.IPrefabPool.Instantiate ( 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 Photon.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