docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConvertNodeType

    ConvertNodeType<TResult>(Func<T, TResult>)

    Converts the graph to use a different node type.

    Declaration
    public Graph<TResult> ConvertNodeType<TResult>(Func<T, TResult> converter) where TResult : IEquatable<TResult>
    Parameters
    Type Name Description
    Func<T, TResult> converter

    Converter from the source node type to the destination type.

    Returns
    Type Description
    Graph<TResult>

    A graph with converted node values.

    Type Parameters
    Name Description
    TResult

    The destination node type.

    In This Article
    Back to top
    Copyright © 2026 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)