docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TrySetLoaders

    TrySetLoaders(List<XRLoader>)

    Attempts to set the given loader list as the list of loaders managed by this instance.

    Declaration
    public bool TrySetLoaders(List<XRLoader> reorderedLoaders)
    Parameters
    Type Name Description
    List<XRLoader> reorderedLoaders

    The list of XRLoaders to be managed by this manager instance.

    Returns
    Type Description
    bool

    true if the loader list was set successfully, false otherwise.

    Remarks

    This method behaves differently in the Editor and during runtime/Play mode. While in the Editor and not in Play mode, any attempts to set the list of loaders will succeed without any additional checks. During runtime/Play mode, the new loader list will be validated against the registered XRLoader types. If any loaders exist in the list that were not registered at startup, the attempt will fail.

    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)