docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SerializedARCollaborationData

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

    Implements
    IDisposable
    IEquatable<SerializedARCollaborationData>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARKit
    Assembly: Unity.XR.ARKit.dll
    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 NativeSlice<byte> bytes { get; }
    Property Value
    Type Description
    NativeSlice<byte>
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if created is false.

    created

    Whether the SerializedARCollaborationData has been created or not.

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

    Methods

    Dispose()

    Disposes the native resource associated with this SerializedARCollaborationData.

    Declaration
    public void 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
    bool

    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
    bool

    true if the SerializedARCollaborationData represents the same object.

    GetHashCode()

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

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash of the SerializedARCollaborationData.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(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
    bool

    true if lhs compares equal to rhs, false otherwise.

    operator !=(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
    bool

    false if lhs compares equal to rhs, true otherwise.

    Implements

    IDisposable
    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 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)