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

    Interface IProvidesFunctionalityInjection

    Defines the API for a Functionality Injection Provider This functionality provider is responsible for allowing other classes to use Functionality Injection

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.Labs.ModuleLoader
    Syntax
    public interface IProvidesFunctionalityInjection : IFunctionalityProvider

    Methods

    InjectFunctionality(List<Object>, List<IFunctionalityProvider>)

    Inject functionality into a list of objects The list is scanned for unique types, and for each unique type, a new provider is created if it does not already exist.

    Declaration
    void InjectFunctionality(List<object> objects, List<IFunctionalityProvider> newProviders = null)
    Parameters
    Type Name Description
    List<Object> objects

    The list of objects into which functionality will be injected

    List<IFunctionalityProvider> newProviders

    (Optional) List to which newly created providers will be added

    InjectFunctionalitySingle(Object)

    Inject functionality into a single object This method does not check the object's type and assumes that providers have been set up. If no providers exist that match subscriber interfaces on the object, no action is taken.

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

    The object into which functionality will be injected

    InjectPreparedFunctionality(List<Object>)

    Inject functionality into a list of objects This method assumes that all necessary providers have been prepared. If no providers exist that match subscriber interfaces on the object, no action is taken. Useful in cases where functionality is already setup, as it is faster than InjectFunctionality.

    Declaration
    void InjectPreparedFunctionality(List<object> objects)
    Parameters
    Type Name Description
    List<Object> objects

    The list of objects into which functionality will be injected

    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