Photon Fusion 1.1.12

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. More...
 

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 NetworkTransformAnchor, NetworkRigidbodyBase, and NetworkPosition.