Allow placing DebugCommand attribute on fields and properties

This commit is contained in:
Wojtek Figat
2024-10-04 15:58:47 +02:00
parent 74d2f5d115
commit c6958357c3

View File

@@ -8,7 +8,7 @@ namespace FlaxEngine
/// Marks static method as debug command that can be executed from the command line or via console.
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property)]
public sealed class DebugCommand : Attribute
{
}