Table of Contents

LifecycleBehaviour Class

public class LifecycleBehaviour : MonoBehaviour

The "Update Manager" functionality with MonoBehaviour.destroyCancellationToken support for Unity 2021.

Inheritance
LifecycleBehaviour

Fields

UnregisterByCancellationToken
_fixedUpdateEarly
_fixedUpdateFinal
_fixedUpdateLater
_fixedUpdateStart
_fixedUpdateUsual
_lateUpdateEarly
_lateUpdateFinal
_lateUpdateLater
_lateUpdateStart
_lateUpdateUsual
_updateEarly
_updateFinal
_updateLater
_updateStart
_updateUsual

Methods

Create(string, bool)
FixedUpdate()
Tip

Set enabled of this mono behaviour false and call this method explicitly in "manager of update managers" to manage multiple update managers execution order while keeping registered actions order.

GetFixedUpdate()
GetFixedUpdateEarly()
GetFixedUpdateFinalize()
GetFixedUpdateInitialize()
GetFixedUpdateLate()
GetLateUpdate()
GetLateUpdateEarly()
GetLateUpdateFinalize()
GetLateUpdateInitialize()
GetLateUpdateLate()
GetUpdate()
GetUpdateEarly()
GetUpdateFinalize()
GetUpdateInitialize()
GetUpdateLate()
LateUpdate()
Tip

Set enabled of this mono behaviour false and call this method explicitly in "manager of update managers" to manage multiple update managers execution order while keeping registered actions order.

OnDestroy()
Register(Action, CancellationToken, UnorderedActionList)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterFixedUpdate(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterFixedUpdateEarly(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterFixedUpdateFinalize(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterFixedUpdateInitialize(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterFixedUpdateLate(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterLateUpdate(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterLateUpdateEarly(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterLateUpdateFinalize(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterLateUpdateInitialize(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterLateUpdateLate(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterUpdate(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterUpdateEarly(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterUpdateFinalize(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterUpdateInitialize(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RegisterUpdateLate(Action, CancellationToken)

If action is depending on instance that will be destroyed with cancellation token, You have to specify same token to unregister action together. If not, action will cause error due to depending instance is gone.

RemoveFixedUpdate(Action)
RemoveFixedUpdateEarly(Action)
RemoveFixedUpdateFinalize(Action)
RemoveFixedUpdateInitialize(Action)
RemoveFixedUpdateLate(Action)
RemoveLateUpdate(Action)
RemoveLateUpdateEarly(Action)
RemoveLateUpdateFinalize(Action)
RemoveLateUpdateInitialize(Action)
RemoveLateUpdateLate(Action)
RemoveUpdate(Action)
RemoveUpdateEarly(Action)
RemoveUpdateFinalize(Action)
RemoveUpdateInitialize(Action)
RemoveUpdateLate(Action)
Update()
Tip

Set enabled of this mono behaviour false and call this method explicitly in "manager of update managers" to manage multiple update managers execution order while keeping registered actions order.