UpdatableSchedulerScope
since: 3.1.1b127
Index
Constructors
constructor
Returns UpdatableSchedulerScope
Methods
publicclearAll
Returns void
publiccreate
Provides a way to directly create scoped ticking function without linking to any object, which will update when executeTickForScope is called by developer (excluding UpdatableScheduler.getMainServerScope and UpdatableScheduler.getMainClientScope scopes where updates called automatically).
Parameters
func: () => void
optionalthisObj: Scriptable
Returns UpdatableHandle
publiccreateRawHandle
Parameters
func: () => void
optionalobject: Scriptable
Returns number
publicexecuteTickForScope
Parameters
tickNo: number
optionaltimeLimitUs: number
default
-1
Returns void
publicgetCurrentTick
Set to
0when scope is created, increases every tick by1with executeTickForScope.Returns number
publicsetCurrentTick
Parameters
tickNo: number
Returns void
Allows to create scoped updatables, which should be updated manually by developer, e.g. when specific conditions met.