Struct ColocationDiscoveryMessage
Represents the result of a Colocation Discovery message.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.MetaOpenXR.dll
Syntax
public readonly struct ColocationDiscoveryMessage
Constructors
ColocationDiscoveryMessage(SerializableGuid, NativeArray<byte>)
Construct an instance.
Declaration
public ColocationDiscoveryMessage(SerializableGuid advertisementId, NativeArray<byte> data)
Parameters
Type | Name | Description |
---|---|---|
SerializableGuid | advertisementId | The ID of the advertisement. |
NativeArray<byte> | data | The data of the message being advertised. Allocated with |
Properties
advertisementId
The ID of the advertisement.
Declaration
public SerializableGuid advertisementId { get; }
Property Value
Type | Description |
---|---|
SerializableGuid |
data
The data of the message being advertised.
Declaration
public NativeArray<byte> data { get; }
Property Value
Type | Description |
---|---|
NativeArray<byte> |