Class NetworkTransform
Actor script component that synchronizes the Transform over the network.
Interpolation and prediction logic based on https://www.gabrielgambetta.com/client-server-game-architecture.html.
Inherited Members
NetworkTransform
NetworkTransform
NetworkTransform
NetworkTransform
NetworkTransform
Assembly: FlaxEngine.dll
File: Engine/Networking/Components/NetworkTransform.h
Syntax
public class NetworkTransform : public Script, public INetworkSerializable
Fields
Components
Actor transform replication components (flags).
Declaration
public ReplicationComponents Components = ReplicationComponents::All
Field Value
ReplicationComponents
|
LocalSpace
If checked, actor transform will be synchronized in local space of the parent actor (otherwise in world space).
Declaration
public bool LocalSpace = false
Field Value
bool
|
Mode
Actor transform replication mode.
Declaration
public ReplicationModes Mode = ReplicationModes::Default
Field Value
ReplicationModes
|
Methods
Deserialize(NetworkStream* stream)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(NetworkStream* stream) override
Parameters
NetworkStream
stream
The input stream to read serialized data. |
Overrides
OnDisable()
Called when object becomes disabled and inactive.
Declaration
public virtual void OnDisable() override
Overrides
OnEnable()
Called when object becomes enabled and active.
Declaration
public virtual void OnEnable() override
Overrides
OnUpdate()
Called every frame if object is enabled.
Declaration
public virtual void OnUpdate() override
Overrides
Serialize(NetworkStream* stream)
Serializes object to the output stream.
Declaration
public virtual void Serialize(NetworkStream* stream) override
Parameters
NetworkStream
stream
The output stream to write serialized data. |