docs.unity3d.com
    目次を表示する/隠す

    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
    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)