Class ScriptBehaviourManager | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ScriptBehaviourManager

    Inheritance
    System.Object
    ScriptBehaviourManager
    ComponentSystemBase
    EntityManager
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Unity.Entities
    Syntax
    public abstract class ScriptBehaviourManager

    Methods

    OnAfterDestroyManagerInternal()

    Declaration
    protected abstract void OnAfterDestroyManagerInternal()

    OnBeforeCreateManagerInternal(World, Int32)

    Declaration
    protected abstract void OnBeforeCreateManagerInternal(World world, int capacity)
    Parameters
    Type Name Description
    World world
    System.Int32 capacity

    OnBeforeDestroyManagerInternal()

    Declaration
    protected abstract void OnBeforeDestroyManagerInternal()

    OnCreateManager(Int32)

    Called when the ScriptBehaviourManager is created. When a new domain is loaded, OnCreate on the necessary manager will be invoked before the ScriptBehaviour will receive its first OnCreate() call. capacity can be configured in Edit -> Configure Memory

    Declaration
    protected virtual void OnCreateManager(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity

    Capacity describes how many objects will register with the manager. This lets you reduce realloc calls while the game is running.

    OnDestroyManager()

    Called when the ScriptBehaviourManager is destroyed. Before Playmode exits or scripts are reloaded OnDestroy will be called on all created ScriptBehaviourManagers.

    Declaration
    protected virtual void OnDestroyManager()

    Update()

    Execute the manager immediately.

    Declaration
    public void Update()
    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