Class MessageUpdateAnnotation
A network message to update an annotation.
Inheritance
System.Object
MessageUpdateAnnotation
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 MessageUpdateAnnotation
Constructors
MessageUpdateAnnotation(Guid, Vector3, Color, String)
Initializes a new instance of the MessageUpdateAnnotation class.
Declaration
public MessageUpdateAnnotation(Guid id, Vector3 position, Color color, string text = "")
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The System.Guid of the annotation. |
UnityEngine.Vector3 | position | The position of the annotation. |
UnityEngine.Color | color | The color of the annotation. |
System.String | text | An optional text for the annotation. Not supported yet! |
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 |
Text
Declaration
public string Text
Field Value
Type | Description |
---|---|
System.String |
Type
Declaration
public static MessageContainer.MessageType Type
Field Value
Type | Description |
---|---|
MessageContainer.MessageType |
Properties
Color
Gets the color of the annotation.
Declaration
[JsonIgnore]
public Color Color { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Color |
Position
Gets the position of the annotation.
Declaration
[JsonIgnore]
public Vector3 Position { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Methods
Pack()
Packs this MessageUpdateAnnotation into a MessageContainer.
Declaration
public MessageContainer Pack()
Returns
Type | Description |
---|---|
MessageContainer | The packed message. |
Unpack(MessageContainer)
Unpacks a MessageContainer of the type MessageUpdateAnnotation.
Declaration
public static MessageUpdateAnnotation Unpack(MessageContainer container)
Parameters
Type | Name | Description |
---|---|---|
MessageContainer | container | The container of the message. |
Returns
Type | Description |
---|---|
MessageUpdateAnnotation | The unpacked message. |