docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ColocationDiscoveryMessage

    Represents the result of a Colocation Discovery message.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 Allocator.Temp and will be disposed of at the end of the frame.

    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>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)