Class ScriptBehaviourManager
Inheritance
System.Object
ScriptBehaviourManager
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()