Add ignoring types with CompilerGeneratedAttribute in Editor

This commit is contained in:
2023-08-14 13:11:00 +02:00
parent bb8f098714
commit da44babb03
+1 -1
View File
@@ -101,7 +101,7 @@ namespace FlaxEditor.GUI
if (_isValid(type))
{
var attributes = type.GetAttributes(true);
if (attributes.FirstOrDefault(x => x is HideInEditorAttribute) == null)
if (attributes.FirstOrDefault(x => x is HideInEditorAttribute || x is System.Runtime.CompilerServices.CompilerGeneratedAttribute) == null)
{
AddItem(new TypeItemView(type, attributes));
}