Class GraphRunner
A graph runner that will traverse and execute all nodes of a provided ImporterGraph.
Inherited Members
Namespace: UnityEngine.Importer
Assembly: Unity.Importer.dll
Syntax
public static class GraphRunner
Remarks
At the end of the execution, the ResultEdge list is used to gather a list of result. These results are returned to the caller, along with a success flag and the result of the graph validation.
Methods
Run(ImporterGraph, AssetLoading, GraphLogger, IEnumerable<IGraphValue>)
Traverse and execute all nodes of the provided ImporterGraph.
Declaration
public static GraphExecutionResult Run(ImporterGraph graph, AssetLoading assetLoading = null, GraphLogger graphLogger = null, IEnumerable<IGraphValue> settingOverride = null)
Parameters
Type | Name | Description |
---|---|---|
ImporterGraph | graph | The ImporterGraph to execute. |
AssetLoading | assetLoading | An optional AssetLoading to be provided to each node of the graph during the execution. |
GraphLogger | graphLogger | An optional GraphLogger to be provided to each node of the graph during the execution. |
IEnumerable<IGraphValue> | settingOverride | An optional collection of ImportSetting<T> to use as override of some of the ImporterGraph settings. |
Returns
Type | Description |
---|---|
GraphExecutionResult | The GraphExecutionResult of this run. |
Remarks
Ensure that your graph is valid before running it to prevent unexpected behaviours or import results.