Method ExecuteImmediate
ExecuteImmediate(string[], TerrainGenerationConfigs, GraphInputContainer, FillArgumentsHandler)
Executes the requested outputs immediately on the current frame and returns the pooled results.
public DataPool ExecuteImmediate(string[] nodeIds, TerrainGenerationConfigs configs, GraphInputContainer inputContainer = null, TerrainGraph.FillArgumentsHandler fillArgumentsCallback = null)
Parameters
nodeIdsstring[]The output node ids to resolve. The graph automatically executes every dependency required to produce these targets.
configsTerrainGenerationConfigsRequest-wide execution settings such as resolution, bounds, height scale, and seed.
inputContainerGraphInputContainerOptional external inputs to bind into the execution context before node evaluation starts.
fillArgumentsCallbackTerrainGraph.FillArgumentsHandlerOptional callback that appends extra values to the argument table after the standard graph arguments have been written.
Returns
- DataPool
The DataPool that still owns every texture and buffer generated during the execution. Callers are expected to remove outputs they want to keep, then dispose the pool.
Remarks
This path executes every node synchronously by calling ExecuteImmediate(GraphContext) unless the node is bypassed. It is primarily used by subgraph execution and workflows that need the result immediately.
Static execution callbacks are fired around the whole run and around each node.