Photon Fusion 2.1.1

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

Properties

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

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:

SimulationStages Stages
Flag for which stages of the simulation loop this component will execute this script.
Definition SimulationBehaviourAttribute.cs:22
SimulationModes Modes
Flag for which indicated peers in SimulationModes will execute this script.
Definition SimulationBehaviourAttribute.cs:27
Base class for a Fusion aware Behaviour (derived from UnityEngine.MonoBehavour). If a SimulationBehav...
Definition SimulationBehaviour.cs:14
SimulationStages
Flags for which stage the simulation currently running. Forward is when a tick is being simulated for...
Definition SimulationStages.cs:10
SimulationModes
Flags for The type of network peer a simulation represents.
Definition SimulationModes.cs:9