Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test assets cause Unity Editor stuck and huge gc when save asset #152

Open
chenquanjun opened this issue May 28, 2020 · 0 comments
Open

Comments

@chenquanjun
Copy link

When save a prefab, it will load all the ConfigGraph assets include test assets in "AssetGraph/Tests/Editor/Graphs/". It stuck editor and cause huge gc.
gc

public const string GRAPH_SEARCH_CONDITION = "t:UnityEngine.AssetGraph.DataModel.Version2.ConfigGraph";

private void NotifyAssetPostprocessorGraphs(AssetPostprocessorContext ctx)
{
var guids = AssetDatabase.FindAssets(Model.Settings.GRAPH_SEARCH_CONDITION);
var executingGraphs = new List<Model.ConfigGraph> ();
foreach(var guid in guids) {
string path = AssetDatabase.GUIDToAssetPath(guid);
var graph = AssetDatabase.LoadAssetAtPath<Model.ConfigGraph>(path);
if (graph != null && graph.UseAsAssetPostprocessor) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant