Struct MarsTrackableId
A unique identifier for trackable data in MARS - mirrors UnityEngine.Experimental.XR.TrackableId
Syntax
[Serializable]
public struct MarsTrackableId : IEquatable<MarsTrackableId>
Constructors
MarsTrackableId(String)
Declaration
public MarsTrackableId(string trackableKey)
Parameters
Type |
Name |
Description |
String |
trackableKey |
|
MarsTrackableId(UInt64, UInt64)
Declaration
public MarsTrackableId(ulong idOne, ulong idTwo)
Parameters
Properties
InvalidId
Represents an invalid id.
Declaration
public static MarsTrackableId InvalidId { get; }
Property Value
Methods
Create()
Create a new trackable identifier
Declaration
public static MarsTrackableId Create()
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Equals(MarsTrackableId)
Declaration
public bool Equals(MarsTrackableId other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Generates a nicely formatted version of the id
Declaration
public override string ToString()
Returns
Type |
Description |
String |
A string unique to this id
|
Overrides
Operators
Equality(MarsTrackableId, MarsTrackableId)
Declaration
public static bool operator ==(MarsTrackableId id1, MarsTrackableId id2)
Parameters
Returns
Inequality(MarsTrackableId, MarsTrackableId)
Declaration
public static bool operator !=(MarsTrackableId id1, MarsTrackableId id2)
Parameters
Returns