Photon Fusion 1.1.11

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. More...
 
void PredictedSpawnRender ()
 Called every tick in place of Render(), until PredictedSpawnSuccess or PredictedSpawnFailed occur. More...
 
void PredictedSpawnSpawned ()
 Called in place of Spawned(), when the predicted object is initially created locally on the client. More...
 
void PredictedSpawnSuccess ()
 Called when Server spawn was has been confirmed, and the predicted spawn object has been added to the simulation. More...
 
void PredictedSpawnUpdate ()
 Called every tick in place of FixedUpdateNetwork(), until PredictedSpawnSuccess or PredictedSpawnFailed occur. More...
 

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.