Source: Task.cs, UTask.cs - Last Updated: 2021.8.2
Derived from gigs (Gig
or UGig
) tasks are intended for subclassing; in addition to logging features availed in gigs, tasks easily leverage stateful composites and decorators.
In Unity: Task and UTask
Register(Resettable rsc)
/ Register the specified resource; typically the resource is a un-managed composite or decorator
action Reset()
/ Reset the task. Inline or explicitly registered composites and decorators will be reset.
action Release()
/ Reset the task and release memory resources.
Like UGig
, UTask
is implicitly convertible to status
, and Func<status>
.