docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GraphRunner

    A graph runner that will traverse and execute all nodes of a provided ImporterGraph.

    Inheritance
    object
    GraphRunner
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)