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

GraphDatabase.LoadGraphForImporter

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 T LoadGraphForImporter(string assetPath);

Parameters

Parameter Description
assetPath The path to the graph asset file.

Returns

T A new instance of the graph read directly from disk.

Description

Loads a fresh instance of the Graph of type T from disk for use in the asset import pipeline.

Use this method to load a Graph instance from disk without referencing the in-memory version. This ensures consistent, deterministic behavior required by Unity’s asset import pipeline. This method is intended for importers, it bypasses any in-memory modifications that may have occurred. Unlike LoadGraph_1, this method always returns a clean copy of the graph as it exists on disk.