docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetReferenceObjectName

    SetReferenceObjectName(XRReferenceObjectLibrary, int, string)

    Sets the name of the XRReferenceObject at index.

    Declaration
    public static void SetReferenceObjectName(this XRReferenceObjectLibrary library, int index, string name)
    Parameters
    Type Name Description
    XRReferenceObjectLibrary library

    The XRReferenceObjectLibrary being extended.

    int index

    The index of the XRReferenceObject to modify.

    string name

    The new name of the XRReferenceObject.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if library is null.

    IndexOutOfRangeException

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

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