Parameter | Description |
---|---|
graph | The graph whose asset path you want to retrieve. |
string The asset's file path.
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.