Netick.NetickBehaviour Class Reference
Inheritance diagram for Netick.NetickBehaviour:
Netick.NetickCoreComponent Netick.NetworkBehaviour Netick.LagCompensation Netick.PhysicsSimulationStep Netick.NetworkAnimator Netick.NetworkTransform Netick.NetworkRigidbody Netick.NetworkRigidbody2D

Public Member Functions

virtual void NetworkStart ()
 
virtual void NetworkDestroy ()
 
virtual void NetworkUpdate ()
 
virtual void NetworkRender ()
 
virtual void NetworkFixedUpdate ()
 

Properties

NetworkSandbox Sandbox [get, set]
 
NetworkObject Object [get, set]
 

Member Function Documentation

◆ NetworkDestroy()

virtual void Netick.NetickBehaviour.NetworkDestroy ( )
virtual

Called when this behaviour has been removed from the simulation.

◆ NetworkFixedUpdate()

virtual void Netick.NetickBehaviour.NetworkFixedUpdate ( )
virtual

Called every fixed-time network update/tick. Any changes/updates to the network state must happen here.

On the client, if you are the Input Source or if this Object.PredictionMode is set to Everyone, it will be called several times in one update/tick during resimulations. To check for resimulations, use [IsResimulating].

Reimplemented in Netick.NetworkRigidbody, Netick.NetworkRigidbody2D, Netick.PhysicsSimulationStep, and Netick.LagCompensation.

◆ NetworkRender()

virtual void Netick.NetickBehaviour.NetworkRender ( )
virtual

Called every frame. Executed after NetworkUpdate and NetworkFixedUpdate. para>IMPORTANT NOTE: properties (which can be interpolated) marked with [Smooth] attribute will return interpolated values when accessed in this method.

Reimplemented in Netick.NetworkTransform, and Netick.LagCompensation.

◆ NetworkStart()

virtual void Netick.NetickBehaviour.NetworkStart ( )
virtual

Called when this behaviour has been added to the simulation. And if it's attached to a NetworkObject, it means Object has been given a valid network id.

Reimplemented in Netick.NetworkRigidbody, Netick.NetworkRigidbody2D, and Netick.NetworkTransform.

◆ NetworkUpdate()

virtual void Netick.NetickBehaviour.NetworkUpdate ( )
virtual

Called every frame. Executed before NetworkFixedUpdate.

Property Documentation

◆ Object

NetworkObject Netick.NetickBehaviour.Object
getset

The NetworkObject this behaviour is attached to.

◆ Sandbox

NetworkSandbox Netick.NetickBehaviour.Sandbox
getset

The NetworkSandbox containing this Object.