ProcessList¶
Runs a list of processes sequentially or in parallel.
Namespace: Jungle.Processes
Implements: IProcess
Overview¶
ProcessList is a composable process container that executes child processes either sequentially (each starts after the previous completes) or in parallel (all start simultaneously, the list completes when all finish). It replaces the former ParallelProcess and SequentialProcess with a single unified type.
Properties¶
| Property | Type | Description |
|---|---|---|
| executionMode | ProcessExecutionMode |
Sequential or Parallel execution. Default: Sequential. On the timeline a sequential list runs along one track and a parallel one gets a track per step. |
| processes | List<IProcess> |
Child processes to execute. Single steps only: a list never holds another list. For structure, use a Sequencer. |
| labels | List<string> |
Optional name per entry, shown on the timeline instead of the class name. Display only, hidden in the Inspector. |
Runtime API¶
| Member | Type | Description |
|---|---|---|
Begin(Action) |
Method | Starts all child processes according to the execution mode. |
Pause() |
Method | Pauses active child processes. |
Unpause() |
Method | Resumes paused child processes. |
Complete() |
Method | Immediately completes all remaining child processes. |
IsRunning |
bool |
True while any child process is still running. |
IsComplete |
bool |
True after all child processes have finished. |
Duration |
float |
Total (sequential) or max (parallel) duration of children. |