docs.unity3d.com
Search Results for

    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.XRTools.ModuleLoader
    Assembly: solution.dll
    Syntax
    public interface IProvidesFunctionalityInjection : IFunctionalityProvider

    Methods

    Name Description
    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.

    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.

    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.

    Extension Methods

    FunctionalityProviderMethods.TryConnectSubscriber<TProvider>(TProvider, object)
    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)