Photon Fusion 2.0.0

Public Member Functions | List of all members
IBeforeAllTicks Interface Reference

Interface for BeforeAllTicks callback. Called before the re-simulation loop (when applicable), and also before the forward simulation loop. Implement this interface on SimulationBehaviour and NetworkBehaviour classes. More...

Inherited by NetworkTransform.

Public Member Functions

void BeforeAllTicks (bool resimulation, int tickCount)
 Called before the re-simulation loop (when applicable), and also before the forward simulation loop. Only called on Updates where re-simulation or forward ticks are processed.
 

Detailed Description

Interface for BeforeAllTicks callback. Called before the re-simulation loop (when applicable), and also before the forward simulation loop. Implement this interface on SimulationBehaviour and NetworkBehaviour classes.

Member Function Documentation

◆ BeforeAllTicks()

void BeforeAllTicks ( bool  resimulation,
int  tickCount 
)

Called before the re-simulation loop (when applicable), and also before the forward simulation loop. Only called on Updates where re-simulation or forward ticks are processed.

Parameters
resimulationTrue if this is being called during the re-simulation loop. False if during the forward simulation loop.
tickCountHow many re-simulation or forward ticks are going to be processed.