Photon Fusion 1.1.9

Public Member Functions | Properties | List of all members
OrderAfterAttribute Class Reference

Inherits OrderAttribute.

Public Member Functions

 OrderAfterAttribute (params Type[] types)
 Fusion attribute that defines execution order of this script relative to specified other scripts.
 

Properties

Type[] After [get]
 The array of scripts the attributed script should run before.
 

Detailed Description

Fusion attribute used to indicate relative execution order of SimulationBehaviour and NetworkBehaviour derived scripts. Any number of scripts can be specified.

Usage:

[OrderAfter(typeof(MySimulationBehaviour), typeof(MyNetworkBehaviour), etc)]

Constructor & Destructor Documentation

◆ OrderAfterAttribute()

OrderAfterAttribute ( params Type[]  types)

Fusion attribute that defines execution order of this script relative to specified other scripts.

Parameters
typesThe SimulationBehaviour and NetworkBehaviour scripts this attributed script should execute AFTER.