C# Class UnityEngine.Networking.NetworkTransform

Inheritance: NetworkBehaviour
Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetNetworkChannel ( ) : int
GetNetworkSendInterval ( ) : float
HandleTransform ( NetworkMessage netMsg ) : void
OnDeserialize ( NetworkReader reader, bool initialState ) : void
OnSerialize ( NetworkWriter writer, bool initialState ) : bool
OnStartAuthority ( ) : void
OnStartServer ( ) : void
SerializeRotation2D ( NetworkWriter writer, float rot, CompressionSyncMode compression ) : void
SerializeRotation3D ( NetworkWriter writer, Quaternion rot, AxisSyncMode mode, CompressionSyncMode compression ) : void
SerializeSpin2D ( NetworkWriter writer, float angularVelocity, CompressionSyncMode compression ) : void
SerializeSpin3D ( NetworkWriter writer, Vector3 angularVelocity, AxisSyncMode mode, CompressionSyncMode compression ) : void
SerializeVelocity2D ( NetworkWriter writer, Vector2 velocity, CompressionSyncMode compression ) : void
SerializeVelocity3D ( NetworkWriter writer, Vector3 velocity, CompressionSyncMode compression ) : void
UnserializeRotation2D ( NetworkReader reader, CompressionSyncMode compression ) : float
UnserializeRotation3D ( NetworkReader reader, AxisSyncMode mode, CompressionSyncMode compression ) : Quaternion
UnserializeSpin2D ( NetworkReader reader, CompressionSyncMode compression ) : float
UnserializeSpin3D ( NetworkReader reader, AxisSyncMode mode, CompressionSyncMode compression ) : Vector3
UnserializeVelocity2D ( NetworkReader reader, CompressionSyncMode compression ) : Vector3
UnserializeVelocity3D ( NetworkReader reader, CompressionSyncMode compression ) : Vector3

Private Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
FixedUpdateClient ( ) : void
FixedUpdateServer ( ) : void
HasMoved ( ) : bool
InterpolateTransformMode2D ( ) : void
InterpolateTransformMode3D ( ) : void
InterpolateTransformModeCharacterController ( ) : void
OnValidate ( ) : void
ReadAngle ( NetworkReader reader, CompressionSyncMode compression ) : float
SendTransform ( ) : void
SerializeMode2D ( NetworkWriter writer ) : void
SerializeMode3D ( NetworkWriter writer ) : void
SerializeModeCharacterController ( NetworkWriter writer ) : void
SerializeModeTransform ( NetworkWriter writer ) : void
UnserializeMode2D ( NetworkReader reader, bool initialState ) : void
UnserializeMode3D ( NetworkReader reader, bool initialState ) : void
UnserializeModeCharacterController ( NetworkReader reader, bool initialState ) : void
UnserializeModeTransform ( NetworkReader reader, bool initialState ) : void
Update ( ) : void
WriteAngle ( NetworkWriter writer, float angle, CompressionSyncMode compression ) : void

Method Details

GetNetworkChannel() public method

public GetNetworkChannel ( ) : int
return int

GetNetworkSendInterval() public method

public GetNetworkSendInterval ( ) : float
return float

HandleTransform() public static method

public static HandleTransform ( NetworkMessage netMsg ) : void
netMsg NetworkMessage
return void

OnDeserialize() public method

public OnDeserialize ( NetworkReader reader, bool initialState ) : void
reader NetworkReader
initialState bool
return void

OnSerialize() public method

public OnSerialize ( NetworkWriter writer, bool initialState ) : bool
writer NetworkWriter
initialState bool
return bool

OnStartAuthority() public method

public OnStartAuthority ( ) : void
return void

OnStartServer() public method

public OnStartServer ( ) : void
return void

SerializeRotation2D() public static method

public static SerializeRotation2D ( NetworkWriter writer, float rot, CompressionSyncMode compression ) : void
writer NetworkWriter
rot float
compression CompressionSyncMode
return void

SerializeRotation3D() public static method

public static SerializeRotation3D ( NetworkWriter writer, Quaternion rot, AxisSyncMode mode, CompressionSyncMode compression ) : void
writer NetworkWriter
rot UnityEngine.Quaternion
mode AxisSyncMode
compression CompressionSyncMode
return void

SerializeSpin2D() public static method

public static SerializeSpin2D ( NetworkWriter writer, float angularVelocity, CompressionSyncMode compression ) : void
writer NetworkWriter
angularVelocity float
compression CompressionSyncMode
return void

SerializeSpin3D() public static method

public static SerializeSpin3D ( NetworkWriter writer, Vector3 angularVelocity, AxisSyncMode mode, CompressionSyncMode compression ) : void
writer NetworkWriter
angularVelocity Vector3
mode AxisSyncMode
compression CompressionSyncMode
return void

SerializeVelocity2D() public static method

public static SerializeVelocity2D ( NetworkWriter writer, Vector2 velocity, CompressionSyncMode compression ) : void
writer NetworkWriter
velocity Vector2
compression CompressionSyncMode
return void

SerializeVelocity3D() public static method

public static SerializeVelocity3D ( NetworkWriter writer, Vector3 velocity, CompressionSyncMode compression ) : void
writer NetworkWriter
velocity Vector3
compression CompressionSyncMode
return void

UnserializeRotation2D() public static method

public static UnserializeRotation2D ( NetworkReader reader, CompressionSyncMode compression ) : float
reader NetworkReader
compression CompressionSyncMode
return float

UnserializeRotation3D() public static method

public static UnserializeRotation3D ( NetworkReader reader, AxisSyncMode mode, CompressionSyncMode compression ) : Quaternion
reader NetworkReader
mode AxisSyncMode
compression CompressionSyncMode
return UnityEngine.Quaternion

UnserializeSpin2D() public static method

public static UnserializeSpin2D ( NetworkReader reader, CompressionSyncMode compression ) : float
reader NetworkReader
compression CompressionSyncMode
return float

UnserializeSpin3D() public static method

public static UnserializeSpin3D ( NetworkReader reader, AxisSyncMode mode, CompressionSyncMode compression ) : Vector3
reader NetworkReader
mode AxisSyncMode
compression CompressionSyncMode
return Vector3

UnserializeVelocity2D() public static method

public static UnserializeVelocity2D ( NetworkReader reader, CompressionSyncMode compression ) : Vector3
reader NetworkReader
compression CompressionSyncMode
return Vector3

UnserializeVelocity3D() public static method

public static UnserializeVelocity3D ( NetworkReader reader, CompressionSyncMode compression ) : Vector3
reader NetworkReader
compression CompressionSyncMode
return Vector3