Add ignoring types with CompilerGeneratedAttribute in Editor
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user