docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IModuleBehaviorCallbacks

    Define this module as one that needs behavior callbacks These methods provide entry points for scene load and unload operations during MonoBehaviour callback phases, i.e. using capabilities to create required providers These methods are called by methods in ModuleLoaderCore of the same name on all modules, in the order specified by their ModuleBehaviorCallbackOrderAttribute. The recommended setup is to include a ModuleCallbacksBehaviour in the scene which may optionally run in edit mode to provide MonoBehaviour callbacks in edit mode. The ExecutionOrderSetter class ensures that ModuleCallbacksBehaviour has a very low execution order so that these methods are called on modules before other MonoBehaviours in the scene. Some projects may need to tie these updates to an existing MonoBehaviour or provide an alternative entry point for these methods.

    Inherited Members
    IModule.LoadModule()
    IModule.UnloadModule()
    Namespace: Unity.XRTools.ModuleLoader
    Assembly: solution.dll
    Syntax
    public interface IModuleBehaviorCallbacks : IModule

    Methods

    Name Description
    OnBehaviorAwake()

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

    OnBehaviorDestroy()

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

    OnBehaviorDisable()

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

    OnBehaviorEnable()

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

    OnBehaviorStart()

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

    OnBehaviorUpdate()

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

    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)