Photon Fusion 1.1.9

Public Member Functions | List of all members
IPredictedSpawnBehaviour Interface Reference

Interface for predicted spawn callbacks. Implement this interface on SimulationBehaviour and NetworkBehaviour classes. More...

Inherited by NetworkTransform.

Public Member Functions

void PredictedSpawnFailed ()
 Called when Server does not produce the spawn that has been predicted. The spawn did not actually happen, and this callback may be used to clean up after the missed prediction.
 
void PredictedSpawnRender ()
 Called every tick in place of Render(), until PredictedSpawnSuccess or PredictedSpawnFailed occur.
 
void PredictedSpawnSpawned ()
 Called in place of Spawned(), when the predicted object is initially created locally on the client.
 
void PredictedSpawnSuccess ()
 Called when Server spawn was has been confirmed, and the predicted spawn object has been added to the simulation.
 
void PredictedSpawnUpdate ()
 Called every tick in place of FixedUpdateNetwork(), until PredictedSpawnSuccess or PredictedSpawnFailed occur.
 

Detailed Description

Interface for predicted spawn callbacks. Implement this interface on SimulationBehaviour and NetworkBehaviour classes.

Member Function Documentation

◆ PredictedSpawnFailed()

void PredictedSpawnFailed ( )

Called when Server does not produce the spawn that has been predicted. The spawn did not actually happen, and this callback may be used to clean up after the missed prediction.

Implemented in NetworkTransform.

◆ PredictedSpawnRender()

void PredictedSpawnRender ( )

Called every tick in place of Render(), until PredictedSpawnSuccess or PredictedSpawnFailed occur.

Implemented in NetworkTransform.

◆ PredictedSpawnSpawned()

void PredictedSpawnSpawned ( )

Called in place of Spawned(), when the predicted object is initially created locally on the client.

Implemented in NetworkTransform.

◆ PredictedSpawnSuccess()

void PredictedSpawnSuccess ( )

Called when Server spawn was has been confirmed, and the predicted spawn object has been added to the simulation.

Implemented in NetworkTransform.

◆ PredictedSpawnUpdate()

void PredictedSpawnUpdate ( )

Called every tick in place of FixedUpdateNetwork(), until PredictedSpawnSuccess or PredictedSpawnFailed occur.

Implemented in NetworkTransform.