Base class for a Fusion aware Behaviour (derived from UnityEngine.MonoBehavour). Objects derived from this object can be associated with a NetworkRunner and Simulation. If a parent NetworkObject is found, this component will also be associated with that network entity. More...
Inherits Behaviour, and ILogBuilder.
Inherited by HitboxManager, NetworkBehaviour, NetworkPhysicsSimulation2D, and NetworkPhysicsSimulation3D.
Public Member Functions | |
virtual void | FixedUpdateNetwork () |
Fusion FixedUpdate timing callback. | |
virtual void | Render () |
Post simulation frame rendering callback. Runs after all simulations have finished. Use in place of Unity's Update when Fusion is handling Physics. | |
Public Member Functions inherited from Behaviour | |
T | AddBehaviour< T > () |
Wrapper for Unity's GameObject.AddComponent() | |
T | GetBehaviour< T > () |
Wrapper for Unity's GameObject.GetComponentInChildren() | |
bool | TryGetBehaviour< T > (out T behaviour) |
Wrapper for Unity's GameObject.TryGetComponent() | |
Public Attributes | |
NetworkObject | Object |
The NetworkObject this component is associated with. May be null if this GameObject does not have a NetworkObject. | |
NetworkRunner | Runner |
The NetworkRunner this component is associated with. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Behaviour | |
static void | DestroyBehaviour (Behaviour behaviour) |
Wrapper for Unity's GameObject.Destroy() | |
Base class for a Fusion aware Behaviour (derived from UnityEngine.MonoBehavour). Objects derived from this object can be associated with a NetworkRunner and Simulation. If a parent NetworkObject is found, this component will also be associated with that network entity.
|
virtual |
Fusion FixedUpdate timing callback.
Reimplemented in NetworkBehaviour, NetworkMecanimAnimator, NetworkPhysicsSimulation2D, NetworkPhysicsSimulation3D, and HitboxManager.
|
virtual |
Post simulation frame rendering callback. Runs after all simulations have finished. Use in place of Unity's Update when Fusion is handling Physics.
Reimplemented in NetworkTransform, NetworkTransformAnchor, and NetworkTransformObsolete.