Photon Bolt Engine API
1.3
Sets the network mode and scenes that a Bolt.GlobalEventListener should be run on More...
Public Member Functions | |
| BoltGlobalBehaviourAttribute () | |
| GlobalBehaviour will run both on Server and Client and on all scenes. More... | |
| BoltGlobalBehaviourAttribute (BoltNetworkModes mode) | |
| GlobalBehaviour will run on the specified mode and on all scenes. More... | |
| BoltGlobalBehaviourAttribute (BoltNetworkModes mode, params string[] scenes) | |
| GlobalBehaviour will run on the specified mode and only on the specified scenes. More... | |
| BoltGlobalBehaviourAttribute (params string[] scenes) | |
| GlobalBehaviour will run on both Server and Client but only on the specified scenes. You can use BoltScenes to select the available scenes. More... | |
Properties | |
| BoltNetworkModes | Mode [get] |
| Sets this behaviour to run only in server or client network mode. BoltNetworkModes for more info. More... | |
| string[] | Scenes [get] |
| A list of scenes for this behaviour to run on. You can use a string with the name of the Scene or use BoltScenes. More... | |
Sets the network mode and scenes that a Bolt.GlobalEventListener should be run on
Example: Setting up a server-side event listener to spawn players
|
inline |
GlobalBehaviour will run both on Server and Client and on all scenes.
|
inline |
GlobalBehaviour will run on the specified mode and on all scenes.
| mode | Select the BoltNetworkModes in which this GlobalBehaviour will execute. |
|
inline |
GlobalBehaviour will run on both Server and Client but only on the specified scenes. You can use BoltScenes to select the available scenes.
| scenes | List of scene names |
|
inline |
GlobalBehaviour will run on the specified mode and only on the specified scenes.
| mode | Select the BoltNetworkModes in which this GlobalBehaviour will execute. |
| scenes | List of scene names |
|
get |
Sets this behaviour to run only in server or client network mode. BoltNetworkModes for more info.
|
get |
A list of scenes for this behaviour to run on. You can use a string with the name of the Scene or use BoltScenes.