Show Buttons in entity editor

- ScriptEngine: Added HasCustomAttribute- extension method
- ScriptEngine: Added Application class
This commit is contained in:
Simon Lübeß
2023-12-12 13:38:29 +01:00
parent 13cb043cf4
commit e69e1b5526
12 changed files with 253 additions and 42 deletions
+9 -4
View File
@@ -7,11 +7,16 @@ namespace GlitchyEngine.Editor;
* - this attribute also means that the Field is being serialized
* - Editor-Namespace wont be available for distribution builds of the game
*/
/// <summary>
/// Specifies that the field should be visible in the editor, regardless of it's code visibility (private, protected, etc...)
/// If this attribute is specified, the field will also be serialized.
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public sealed class ShowInEditorAttribute : Attribute
{
/// <summary>
/// The label with which the field will be shown in the editor.
/// If not specified, the fields name will be used.
/// </summary>
public string DisplayName { get; set; } = null;
public ShowInEditorAttribute()
{}
}
}