GetGraphAssetPath(Graph)
Retrieves the file path of the asset associated with the specified Graph.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public static string GetGraphAssetPath(Graph graph)
Parameters
The graph whose asset path you want to retrieve.
Returns
Type | Description |
|---|---|
| string | The asset's file path. |
Remarks
Use this method to get the relative file path of the graph asset within the Unity project (for example, ). Do not use with graph objects, as it will not return the correct result.
"Assets/Graphs/MyGraph.mygraph"AssetDatabase.GetAssetPath