docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryRemoveLoader

    TryRemoveLoader(XRLoader)

    Attempts to remove the first instance of a given loader from the list of loaders.

    Declaration
    public bool TryRemoveLoader(XRLoader loader)
    Parameters
    Type Name Description
    XRLoader loader

    The XRLoader to be removed from this manager's instance of loaders.

    Returns
    Type Description
    bool

    true if the loader was successfully removed from the list, false otherwise.

    Remarks

    This method behaves differently in the Editor and during runtime/Play mode. During runtime/Play mode, the loader will be removed with no additional side effects if it is in the list managed by this instance. While in the Editor and not in Play mode, the loader will be removed if it exists and it will be unregistered from this instance and any attempts to add it during runtime/Play mode will fail. You can re-add the loader in the Editor while not in Play mode.

    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)