From c6958357c38cf44c1b6ad54d5d8e9aa85a2f0cdc Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 4 Oct 2024 15:58:47 +0200 Subject: [PATCH] Allow placing `DebugCommand` attribute on fields and properties --- Source/Engine/Debug/DebugCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Debug/DebugCommands.cs b/Source/Engine/Debug/DebugCommands.cs index 3c67ca31e..d676ea979 100644 --- a/Source/Engine/Debug/DebugCommands.cs +++ b/Source/Engine/Debug/DebugCommands.cs @@ -8,7 +8,7 @@ namespace FlaxEngine /// Marks static method as debug command that can be executed from the command line or via console. /// [Serializable] - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property)] public sealed class DebugCommand : Attribute { }