docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ActiveLoaderAs

    ActiveLoaderAs<T>()

    Return the current active loader, cast to the requested type. Useful shortcut when you need to get the active loader as something less generic than XRLoader.

    Declaration
    public T ActiveLoaderAs<T>() where T : XRLoader
    Returns
    Type Description
    T

    The active loader as requested type, or null.

    Type Parameters
    Name Description
    T

    Requested type of the loader

    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)