[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Unity.GraphToolkit.Editor.GraphDatabase.LoadGraph.html [Back]  [Original]

Unity - Scripting API: Unity.GraphToolkit.Editor.GraphDatabase.LoadGraph
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    GraphDatabase.LoadGraph

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Declaration

    public static T LoadGraph(string assetPath);

    Parameters

    Parameter Description
    assetPath The relative path to the graph asset (for example, "Assets/Graphs/MyGraph.mygraph").

    Returns

    T The loaded graph instance, or null if no matching graph is found.

    Description

    Loads a Graph of type T from the asset at the specified path.

    Use this method to load a graph asset of type T from a given asset path. The assetPath must be relative to the Unity project folder. This method returns the graph object currently loaded in memory, which might differ from the version on disk if the asset was modified or opened in an editor. This behavior is similar to AssetDatabase.LoadAssetAtPath. For deterministic loading during import, use GraphDatabase.LoadGraphForImporter instead.


    Web Proxy Viewer  |  New URL  |  Original Page