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

    Interface IFunctionalityProvider

    Provides functionality for an IFunctionalitySubscriber By requiring that the provider template in IFunctionalitySubscriber inherit IFunctionalityProvider, we allow discovery and enumeration of providers. This is not required for Functionality injection to work, but allows us to distinguish providers from other types

    Namespace: Unity.Labs.ModuleLoader
    Syntax
    public interface IFunctionalityProvider

    Methods

    ConnectSubscriber(Object)

    Called by the FunctionalityInjectionModule when injecting functionality on an object

    Declaration
    void ConnectSubscriber(object obj)
    Parameters
    Type Name Description
    Object obj

    The object onto which functionality is being injected. If this implements a subscriber interface that subscribes to functionality provided by this object, it will set itself as the provider

    LoadProvider()

    Called when the provider is loaded into the FunctionalityInjectionModule

    Declaration
    void LoadProvider()

    UnloadProvider()

    Called when the provider is unloaded into the FunctionalityInjectionModule

    Declaration
    void 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