文档

Unity Engine

Unity Engine

GetGraphAssetPath(Graph)

Retrieves the file path of the asset associated with the specified Graph.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static string GetGraphAssetPath(Graph graph)

Parameters

graph

The graph whose asset path you want to retrieve.

Returns

Type

Description

stringThe asset's file path.

Remarks

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.