Class MessageUpdateUser
A network message to update a user indicator.
Inheritance
System.Object
MessageUpdateUser
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 MessageUpdateUser
Constructors
MessageUpdateUser(Vector3, Quaternion, Guid, Color)
Initializes a new instance of the MessageUpdateUser class.
Declaration
public MessageUpdateUser(Vector3 position, Quaternion orientation, Guid id, Color color)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | The new position of the user. |
UnityEngine.Quaternion | orientation | The new orientation of the user. |
System.Guid | id | The System.Guid of the user. |
UnityEngine.Color | color | The color of the user indicator. |
Fields
ColorB
Declaration
[JsonProperty]
public float ColorB
Field Value
Type | Description |
---|---|
System.Single |
ColorG
Declaration
[JsonProperty]
public float ColorG
Field Value
Type | Description |
---|---|
System.Single |
ColorR
Declaration
[JsonProperty]
public float ColorR
Field Value
Type | Description |
---|---|
System.Single |
Id
Declaration
public Guid Id
Field Value
Type | Description |
---|---|
System.Guid |
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 |
Type
Declaration
public static MessageContainer.MessageType Type
Field Value
Type | Description |
---|---|
MessageContainer.MessageType |
Properties
Color
Gets or sets the color of the user update.
Declaration
[JsonIgnore]
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Color |
Orientation
Gets or sets the orientation of the user update.
Declaration
[JsonIgnore]
public Quaternion Orientation { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Quaternion |
Position
Gets or sets the position of the user update.
Declaration
[JsonIgnore]
public Vector3 Position { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Methods
Pack()
Packs this MessageUpdateUser into a MessageContainer.
Declaration
public MessageContainer Pack()
Returns
Type | Description |
---|---|
MessageContainer | The packed message. |
Unpack(MessageContainer)
Unpacks a MessageContainer of the type MessageUpdateUser.
Declaration
public static MessageUpdateUser Unpack(MessageContainer container)
Parameters
Type | Name | Description |
---|---|---|
MessageContainer | container | The container of the message. |
Returns
Type | Description |
---|---|
MessageUpdateUser | The unpacked message. |