Class NetworkTransform
Actor script component that synchronizes the Transform over the network.
Namespace: FlaxEngine.Networking
Assembly: FlaxEngine.CSharp.dll
Syntax
[Category("Flax Engine")]
[Unmanaged]
public class NetworkTransform : Script, ISerializable, INetworkSerializable
Remarks
Interpolation and prediction logic based on https://www.gabrielgambetta.com/client-server-game-architecture.html.
Constructors
NetworkTransform()
Properties
Components
Actor transform replication components (flags).
Declaration
[EditorOrder(20)]
[Unmanaged]
public NetworkTransform.ReplicationComponents Components { get; set; }
Property Value
NetworkTransform.ReplicationComponents
|
LocalSpace
If checked, actor transform will be synchronized in local space of the parent actor (otherwise in world space).
Declaration
[EditorOrder(10)]
[Unmanaged]
public bool LocalSpace { get; set; }
Property Value
System.Boolean
|
Mode
Actor transform replication mode.
Declaration
[EditorOrder(30)]
[Unmanaged]
public NetworkTransform.ReplicationModes Mode { get; set; }
Property Value
NetworkTransform.ReplicationModes
|
Methods
Deserialize(NetworkStream)
Deserializes object from the input stream.
Declaration
[Unmanaged]
public virtual void Deserialize(NetworkStream stream)
Parameters
NetworkStream
stream
The input stream to read serialized data. |
Implements
Serialize(NetworkStream)
Serializes object to the output stream.
Declaration
[Unmanaged]
public virtual void Serialize(NetworkStream stream)
Parameters
NetworkStream
stream
The output stream to write serialized data. |