Mercury Messaging
Documentation for the Mercury Messaging Framework
MercuryMessaging.MmTransform Struct Reference

A struct containing the translation, rotation and scale of a transformation. More...

Public Member Functions

 MmTransform (Vector3 iTranslation, Vector3 iScale, Quaternion iRotation)
 Create an MmTransform from translation, rotation, and scale directly. More...
 
 MmTransform (Transform iTransform, bool useGlobal)
 Create an MmTransform from a UnityEngine.Transform. More...
 
 MmTransform (MmTransform iMmTransform)
 Copy constructor for MmTransform. More...
 
void Deserialize (NetworkReader reader)
 Deserialize the MmTransform More...
 
void Serialize (NetworkWriter writer)
 Serialize the MmTransform More...
 

Public Attributes

Vector3 Translation
 Translation. More...
 
Vector3 Scale
 Scale. More...
 
Quaternion Rotation
 Rotation. More...
 

Detailed Description

A struct containing the translation, rotation and scale of a transformation.

Constructor & Destructor Documentation

◆ MmTransform() [1/3]

MercuryMessaging.MmTransform.MmTransform ( Vector3  iTranslation,
Vector3  iScale,
Quaternion  iRotation 
)

Create an MmTransform from translation, rotation, and scale directly.

Parameters
iTranslation
iScale
iRotation

◆ MmTransform() [2/3]

MercuryMessaging.MmTransform.MmTransform ( Transform  iTransform,
bool  useGlobal 
)

Create an MmTransform from a UnityEngine.Transform.

Parameters
iTransformUnityEngine.Transform component.
useGlobalUse Global or Local transform values.

◆ MmTransform() [3/3]

MercuryMessaging.MmTransform.MmTransform ( MmTransform  iMmTransform)

Copy constructor for MmTransform.

Parameters
iMmTransformMmTransform to be copied.

Member Function Documentation

◆ Deserialize()

void MercuryMessaging.MmTransform.Deserialize ( NetworkReader  reader)

Deserialize the MmTransform

Parameters
readerUNET based deserializer object

◆ Serialize()

void MercuryMessaging.MmTransform.Serialize ( NetworkWriter  writer)

Serialize the MmTransform

Parameters
writerUNET based serializer

Member Data Documentation

◆ Rotation

Quaternion MercuryMessaging.MmTransform.Rotation

Rotation.

◆ Scale

Vector3 MercuryMessaging.MmTransform.Scale

Scale.

◆ Translation

Vector3 MercuryMessaging.MmTransform.Translation

Translation.


The documentation for this struct was generated from the following file: