Photon Fusion 2.1.1

Behaviour Class Referenceabstract

Alternative base class to Unity's MonoBehaviour. This allows for components that work both in Unity, as well as the Photon relays. More...

Inherited by Hitbox, NetworkEvents, NetworkObject, NetworkObjectPrefabData, NetworkRunner, and SimulationBehaviour.

Public Member Functions

AddBehaviour< T > ()
 Wrapper for Unity's GameObject.AddComponent().
GetBehaviour< T > ()
 Wrapper for Unity's GameObject.GetComponentInChildren().
bool TryGetBehaviour< T > (out T behaviour)
 Wrapper for Unity's GameObject.TryGetComponent().

Static Public Member Functions

static void DestroyBehaviour (Behaviour behaviour)
 Wrapper for Unity's GameObject.Destroy().

Detailed Description

Alternative base class to Unity's MonoBehaviour. This allows for components that work both in Unity, as well as the Photon relays.