docs.unity3d.com
    Show / Hide Table of Contents

    Struct SerializedARCollaborationData

    Represents the serialized form of an ARCollaborationData. Obtain with ToSerialized().

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.XR.ARKit
    Syntax
    public struct SerializedARCollaborationData : IDisposable, IEquatable<SerializedARCollaborationData>

    Properties

    bytes

    Get the raw bytes of the serialized ARCollaborationData as a NativeSlice. No copies are made; the NativeSlice is a "view" into the raw data. The NativeSlice is valid until this object is Dispose()d.

    Declaration
    public readonly NativeSlice<byte> bytes { get; }
    Property Value
    Type Description
    Unity.Collections.NativeSlice<Byte>
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if created is false.

    created

    Whether the SerializedARCollaborationData has been created or not.

    Declaration
    public readonly bool created { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Dispose()

    Disposes the native resource associated with this SerializedARCollaborationData.

    Declaration
    public void Dispose()
    Implements
    IDisposable.Dispose()

    Equals(Object)

    Compares for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    An object to compare against.

    Returns
    Type Description
    Boolean

    true if obj is an SerializedARCollaborationData and Equals(SerializedARCollaborationData) is also true. Otherwise, false.

    Overrides
    ValueType.Equals(Object)

    Equals(SerializedARCollaborationData)

    Compares for equality.

    Declaration
    public bool Equals(SerializedARCollaborationData other)
    Parameters
    Type Name Description
    SerializedARCollaborationData other

    The other SerializedARCollaborationData to compare against.

    Returns
    Type Description
    Boolean

    true if the SerializedARCollaborationData represents the same object.

    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Generates a hash code suitable for use in HashSet and Dictionary.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash of the SerializedARCollaborationData.

    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(SerializedARCollaborationData, SerializedARCollaborationData)

    Compares lhs and rhs for equality using Equals(SerializedARCollaborationData).

    Declaration
    public static bool operator ==(SerializedARCollaborationData lhs, SerializedARCollaborationData rhs)
    Parameters
    Type Name Description
    SerializedARCollaborationData lhs

    The left-hand-side SerializedARCollaborationData of the comparison.

    SerializedARCollaborationData rhs

    The right-hand-side SerializedARCollaborationData of the comparison.

    Returns
    Type Description
    Boolean

    true if lhs compares equal to rhs, false otherwise.

    Inequality(SerializedARCollaborationData, SerializedARCollaborationData)

    Compares lhs and rhs for inequality using Equals(SerializedARCollaborationData).

    Declaration
    public static bool operator !=(SerializedARCollaborationData lhs, SerializedARCollaborationData rhs)
    Parameters
    Type Name Description
    SerializedARCollaborationData lhs

    The left-hand-side SerializedARCollaborationData of the comparison.

    SerializedARCollaborationData rhs

    The right-hand-side SerializedARCollaborationData of the comparison.

    Returns
    Type Description
    Boolean

    false if lhs compares equal to rhs, true otherwise.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023