Photon Fusion 1.1.2

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

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

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)]

Property Documentation

◆ Modes

SimulationModes Modes
getset

Flag for which indicated peers in SimulationModes will execute this script.

◆ Stages

SimulationStages Stages
getset

Flag for which stages of the simulation loop this component will execute this script.