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
- Photon
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.
|
|
Game |
GameObjects that will be activated.
|
|
Game |
GameObjects that will be deactivated.
|
|
ScriptsToActivate |
Components that will be enabled
|
|
ScriptsToDeactivate |
Components that will be disabled.
|
Methods
Name | Value | Summary |
---|---|---|
OnPhotonInstantiate |
void |
Photon event handler that will trigger everything from the public fields.
|