Photon Fusion 1.1.9

Public Member Functions | List of all members
IBeforeAllTicks Interface Reference

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

Inherited by NetworkPosition, and NetworkTransformAnchor.

Public Member Functions

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

Detailed Description

Interface for BeforeAllTicks callback. Called before the resimulation 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 resimulation loop (when applicable), and also before the forward simulation loop. Only called on Updates where resimulation or forward ticks are processed.

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

Implemented in NetworkPosition, NetworkRigidbodyBase, and NetworkTransformAnchor.