Skip to content

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

Description

@chenquanjun

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) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions