Skip to content

Commit 1cf590e

Browse files
Bruno MikoskiBruno Mikoski
authored andcommitted
fix: force collection refresh after generator run
1 parent 1547f7f commit 1cf590e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Scripts/Editor/Generators/CollectionGenerators.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ private static void RunGeneratorInternal(
202202

203203
if (generateStaticAccess)
204204
CodeGenerationUtility.GenerateStaticCollectionScript(collection);
205+
206+
EditorUtility.SetDirty(collection);
207+
ActiveEditorTracker.sharedTracker.ForceRebuild();
205208
}
206209

207210
private static bool TryGetItemTemplateType(ItemTemplate itemTemplate, out Type resultType)

0 commit comments

Comments
 (0)