Class MessageUpdateOrigin
A network message to update the scene origin.
Inheritance
System.Object
    MessageUpdateOrigin
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: IMLD.MixedRealityAnalysis.Network.Messages
Assembly: Assembly-CSharp.dll
Syntax
public class MessageUpdateOrigin
  Constructors
MessageUpdateOrigin(Vector3, Quaternion, Single)
Initializes a new instance of the MessageUpdateOrigin class.
Declaration
public MessageUpdateOrigin(Vector3 position, Quaternion orientation, float scale)
  Parameters
| Type | Name | Description | 
|---|---|---|
| UnityEngine.Vector3 | position | The new position of the origin.  | 
      
| UnityEngine.Quaternion | orientation | The new orientation of the origin.  | 
      
| System.Single | scale | The new scale of the origin.  | 
      
Fields
PosX
Declaration
[JsonProperty]
public float PosX
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
PosY
Declaration
[JsonProperty]
public float PosY
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
PosZ
Declaration
[JsonProperty]
public float PosZ
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
RotW
Declaration
[JsonProperty]
public float RotW
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
RotX
Declaration
[JsonProperty]
public float RotX
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
RotY
Declaration
[JsonProperty]
public float RotY
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
RotZ
Declaration
[JsonProperty]
public float RotZ
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
Scale
Declaration
public float Scale
  Field Value
| Type | Description | 
|---|---|
| System.Single | 
Type
Declaration
public static MessageContainer.MessageType Type
  Field Value
| Type | Description | 
|---|---|
| MessageContainer.MessageType | 
Properties
Orientation
Gets the orientation of the origin.
Declaration
[JsonIgnore]
public Quaternion Orientation { get; }
  Property Value
| Type | Description | 
|---|---|
| UnityEngine.Quaternion | 
Position
Gets the position of the origin.
Declaration
[JsonIgnore]
public Vector3 Position { get; }
  Property Value
| Type | Description | 
|---|---|
| UnityEngine.Vector3 | 
Methods
Pack()
Packs this MessageUpdateOrigin into a MessageContainer.
Declaration
public MessageContainer Pack()
  Returns
| Type | Description | 
|---|---|
| MessageContainer | The packed message.  | 
      
Unpack(MessageContainer)
Unpacks a MessageContainer of the type MessageUpdateOrigin.
Declaration
public static MessageUpdateOrigin Unpack(MessageContainer container)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MessageContainer | container | The container of the message.  | 
      
Returns
| Type | Description | 
|---|---|
| MessageUpdateOrigin | The unpacked message.  |