Перейти к основному содержанию

Updatable

Updatables provide the proper way to manage objects that update their state every tick. Updatables may not be notified every tick, if there are too many, to avoid user interface freezes. Legacy variant of IUpdatable.

Hierarchy

Index

Properties

optional_handle
since: 3.1.1b127

_handle?: UpdatableHandle

By default, recurring schedule is set to 1 and performs indefinitely.

optionalnoupdate

noupdate?: boolean

Determines can updatable be updated by calling update, useful when is needed to temporary freeze ticking logic.

optionalremove

remove?: boolean

Once true, the object will be removed from updatables list and will no longer receive update calls.

Methods

update

  • update(): void
  • Called every tick to execute pending updates.


    Returns void

Page Options