Debology.Debby.Modules.Adjust.Attributes
AdjustContextAttribute Class
This optional AdjustContext attribute can be used to modify contexts with custom icons.
csharp
public class AdjustContextAttributeInheritance UnityEngine.Scripting.PreserveAttribute 🡒 AdjustContextAttribute
Fields
AdjustContextAttribute.CommandPrefix Field
The prefix for commands in this context. If this is set all commands in this context will need to be called with the prefix, e.g.:
csharp
[AdjustContext(CommandPrefix = "player")]
public class PlayerContext
{
[Adjust(Command = "health")]
private int Health { get; set; }
[Adjust(Command = "kill")]
private void Kill() { }
}Commands: > player.kill > player.health 50
csharp
public string CommandPrefix;Field Value
AdjustContextAttribute.Icon Field
The icon to display on the action button.
csharp
public DebbyIcon Icon;