Photon Fusion 1.1.9

Properties | List of all members
SimulationBehaviourAttribute Class Reference

Attribute for specifying which SimulationStages and SimulationModes this SimulationBehaviour will execute in. Can be used to limit execution to only Host, Server or Client peers, or to only execute on Resimulation or Forward ticks. Usage: More...

Inherits Attribute.

Properties

SimulationModes Modes [get, set]
 Flag for which indicated peers in SimulationModes will execute this script.
 
SimulationStages Stages [get, set]
 Flag for which stages of the simulation loop this component will execute this script.
 

Detailed Description

Attribute for specifying which SimulationStages and SimulationModes this SimulationBehaviour will execute in. Can be used to limit execution to only Host, Server or Client peers, or to only execute on Resimulation or Forward ticks. Usage:

[SimulationBehaviour(Stages = SimulationStages.Forward, Modes = SimulationModes.Server | SimulationModes.Host)]