OnConnectToggle Class

Summary

Enables, disables, or triggers various events and components upon networked instantation. Dependent on having ownership of the object.
Namespace
ASL
Base Types
  • Photon.PunBehaviour
graph TD Base0["Photon.PunBehaviour"]-->Type Type["OnConnectToggle"] class Type type-node

Syntax

public class OnConnectToggle : Photon.PunBehaviour

Fields

Name Constant Value Summary
CamerasToActivate
Camera that will be activated.
CamerasToDeactivate
Cameras that will be deactivated.
EventsToTrigger
Events that will be triggered.
GameObjectsToActivate
GameObjects that will be activated.
GameObjectsToDeactivate
GameObjects that will be deactivated.
ScriptsToActivate
Components that will be enabled
ScriptsToDeactivate
Components that will be disabled.

Methods

Name Value Summary
OnPhotonInstantiate(PhotonMessageInfo) void
Photon event handler that will trigger everything from the public fields.