docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetReferenceObjectEntry

    SetReferenceObjectEntry(XRReferenceObjectLibrary, int, Type, XRReferenceObjectEntry)

    Sets the entry for the given type of the XRReferenceObject at index index.

    Declaration
    public static void SetReferenceObjectEntry(this XRReferenceObjectLibrary library, int index, Type type, XRReferenceObjectEntry entry)
    Parameters
    Type Name Description
    XRReferenceObjectLibrary library

    The XRReferenceObjectLibrary being extended.

    int index

    The index of the XRReferenceObject to modify.

    Type type

    The type of the XRReferenceObjectEntry being set.

    XRReferenceObjectEntry entry

    The entry to use for the given type.

    Remarks

    Each reference object contains a list of "entries", one for each provider (implementation of XRObjectTrackingSubsystem). This method sets the entry for a given type, which is the data that will be used when that provider is active.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if library is null.

    ArgumentNullException

    Thrown if type is null.

    IndexOutOfRangeException

    Thrown if index is not between 0 and library.count - 1.

    ArgumentException

    Thrown if type does not derive from XRReferenceObjectEntry.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023