Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

GraphDatabase.GetGraphAssetPath

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

Cancel

Declaration

public static string GetGraphAssetPath(Unity.GraphToolkit.Editor.Graph graph);

Parameters

Parameter Description
graph The graph whose asset path you want to retrieve.

Returns

string The asset's file path.

Description

Retrieves the file path of the asset associated with the specified Graph.

Use this method to get the relative file path of the graph asset within the Unity project (for example, "Assets/Graphs/MyGraph.mygraph"). Do not use AssetDatabase.GetAssetPath with graph objects, as it will not return the correct result.