ドキュメント

Unity Engine

Unity Engine

SaveGraph(Graph)

Saves the asset of the specified Graph to disk if it has unsaved changes.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static void SaveGraph(Graph graph)

Parameters

graph

The graph to save.

Remarks

Use this method to persist any pending modifications made to a Graph instance. It prevents data loss by ensuring the asset on disk reflects the in-memory graph state. This method is similar to AssetDatabase.SaveAssetIfDirty and only performs a save if the graph is marked dirty.