Class WebModule | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Class WebModule

    Inheritance
    Object
    WebModule
    Namespace: UnityEditor.Experimental.EditorVR.Modules
    Syntax
    public class WebModule : IModuleBehaviorCallbacks, IModule, IProvidesWeb, IFunctionalityProvider

    Methods

    ConnectSubscriber(Object)

    Declaration
    public void ConnectSubscriber(object obj)
    Parameters
    Type Name Description
    Object obj
    Implements
    IFunctionalityProvider.ConnectSubscriber(Object)

    Download(String, Action<UnityWebRequest>)

    Download a resource at the given URL and call a method on completion, providing the UnityWebRequest

    Declaration
    public void Download(string url, Action<UnityWebRequest> completed)
    Parameters
    Type Name Description
    String url

    The URL of the resource

    Action<UnityWebRequest> completed

    The completion callback

    Implements
    IProvidesWeb.Download(String, Action<UnityWebRequest>)

    Download(String, String, Action)

    Download a resource at the given URL to the given destination file and call a method on completion

    Declaration
    public void Download(string url, string destination, Action completed)
    Parameters
    Type Name Description
    String url

    The URL of the resource

    String destination

    The destination file path

    Action completed

    The completion callback

    Implements
    IProvidesWeb.Download(String, String, Action)

    Download<THandler>(String, Action<UnityWebRequest>)

    Download a resource at the given URL using a custom download handler and call a method on completion, providing the UnityWebRequest

    Declaration
    public void Download<THandler>(string url, Action<UnityWebRequest> completed)
        where THandler : DownloadHandler, new()
    Parameters
    Type Name Description
    String url

    The URL of the resource

    Action<UnityWebRequest> completed

    The completion callback

    Type Parameters
    Name Description
    THandler

    The type of download handler to use

    Implements
    IProvidesWeb.Download<THandler>(String, Action<UnityWebRequest>)

    LoadModule()

    Declaration
    public void LoadModule()
    Implements
    IModule.LoadModule()

    LoadProvider()

    Declaration
    public void LoadProvider()
    Implements
    IFunctionalityProvider.LoadProvider()

    OnBehaviorAwake()

    Declaration
    public void OnBehaviorAwake()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorAwake()

    OnBehaviorDestroy()

    Declaration
    public void OnBehaviorDestroy()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDestroy()

    OnBehaviorDisable()

    Declaration
    public void OnBehaviorDisable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDisable()

    OnBehaviorEnable()

    Declaration
    public void OnBehaviorEnable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorEnable()

    OnBehaviorStart()

    Declaration
    public void OnBehaviorStart()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorStart()

    OnBehaviorUpdate()

    Declaration
    public void OnBehaviorUpdate()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorUpdate()

    UnloadModule()

    Declaration
    public void UnloadModule()
    Implements
    IModule.UnloadModule()

    UnloadProvider()

    Declaration
    public void UnloadProvider()
    Implements
    IFunctionalityProvider.UnloadProvider()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023