docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FunctionalityInjectionModule

    Module responsible for managing Functionality Islands

    Inheritance
    object
    ScriptableSettingsBase
    ScriptableSettingsBase<FunctionalityInjectionModule>
    ScriptableSettings<FunctionalityInjectionModule>
    FunctionalityInjectionModule
    Implements
    IModuleBehaviorCallbacks
    IModule
    Inherited Members
    ScriptableSettings<FunctionalityInjectionModule>.instance
    ScriptableSettingsBase<FunctionalityInjectionModule>.k_HasCustomPath
    ScriptableSettingsBase<FunctionalityInjectionModule>.s_Instance
    ScriptableSettingsBase<FunctionalityInjectionModule>.Save(string)
    ScriptableSettingsBase<FunctionalityInjectionModule>.GetFilePath()
    ScriptableSettingsBase.k_PathExceptionMessage
    ScriptableSettingsBase.GetInstanceByType(Type)
    ScriptableSettingsBase.OnLoaded()
    Namespace: Unity.XRTools.ModuleLoader
    Assembly: solution.dll
    Syntax
    [ScriptableSettingsPath("Assets/ModuleLoader/Settings")]
    public class FunctionalityInjectionModule : ScriptableSettings<FunctionalityInjectionModule>, IModuleBehaviorCallbacks, IModule

    Properties

    Name Description
    activeIsland

    The active functionality island

    defaultIsland

    The default functionality island

    islands

    Currently loaded functionality islands

    Methods

    Name Description
    AddIsland(FunctionalityIsland)

    Set up a Functionality Island and add it to the list of islands This must be done before the FunctionalityInjectionModule is loaded The recommended pattern is to implement IModuleDependency<FunctionalityInjectionModule> and add the island in ConnectDependency. If a hard dependency is not possible, ensure your module has a load order which is earlier than FunctionalityInjectionModule and add the island in LoadModule

    LoadModule()

    Called after all modules have been instantiated and dependencies are connected

    OnBehaviorAwake()

    Called by ModuleCallbacksBehaviour Awake as early as possible (using a very low Script Execution Order)

    OnBehaviorDestroy()

    Called by ModuleCallbacksBehaviour OnDestroy as early as possible (using a very low Script Execution Order)

    OnBehaviorDisable()

    Called by ModuleCallbacksBehaviour OnDisable as early as possible (using a very low Script Execution Order)

    OnBehaviorEnable()

    Called by ModuleCallbacksBehaviour OnEnable as early as possible (using a very low Script Execution Order)

    OnBehaviorStart()

    Called by ModuleCallbacksBehaviour Start as early as possible (using a very low Script Execution Order)

    OnBehaviorUpdate()

    Called by ModuleCallbacksBehaviour Update as early as possible (using a very low Script Execution Order)

    PrintStatus()

    Return a string describing the current state of this module, including which islands are loaded, which island is active, and what providers have been added to each island.

    SetActiveIsland(FunctionalityIsland)

    Set the active island

    UnloadModule()

    Called before system shuts down

    Events

    Name Description
    activeIslandChanged

    Invoked when the active island changes

    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)