Show / Hide Table of Contents

Class DebugActionEnum

Enum action will be represented as a button selector in the debug menu, triggering the action will cycle the value

Inheritance
System.Object
BaseDebugAction
FluentAction<DebugActionEnum>
DebugActionEnum
Inherited Members [+/-]
. . .
FluentAction<DebugActionEnum>.WithId(String)
FluentAction<DebugActionEnum>.WithAction(Action)
FluentAction<DebugActionEnum>.WithName(String)
FluentAction<DebugActionEnum>.WithDescription(String)
FluentAction<DebugActionEnum>.WithGroup(String)
FluentAction<DebugActionEnum>.WithShortcutKey(String)
FluentAction<DebugActionEnum>.WithActionColor(Color)
FluentAction<DebugActionEnum>.WithClosePanelAfterTrigger(Boolean)
BaseDebugAction.group
BaseDebugAction.name
BaseDebugAction.id
BaseDebugAction.description
BaseDebugAction.shortcutKey
BaseDebugAction.closePanelAfterTrigger
BaseDebugAction.actionColor
BaseDebugAction.unityAction
BaseDebugAction.action
BaseDebugAction.actionStatus
BaseDebugAction.CanDisplayAction()
BaseDebugAction.GetDescription()
BaseDebugAction.Setup()
Namespace: BennyKok.RuntimeDebug.Actions
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
[Serializable]
public class DebugActionEnum : FluentAction<DebugActionEnum>
Examples
RuntimeDebugSystem.RegisterActions(
    DebugActionBuilder.Enum()
        .WithName("Set My Enum")
        .WithEnumType(typeof(MyEnum))
        .WithActionGet(() => myEnum)
        .WithActionSet((value) => myEnum = value)
);

Fields

actionChange

Declaration
public Action<int> actionChange
Field Value
Type Description
System.Action<System.Int32>

actionGet

Declaration
public Func<int> actionGet
Field Value
Type Description
System.Func<System.Int32>

actionSet

Declaration
public Action<int> actionSet
Field Value
Type Description
System.Action<System.Int32>

Methods

GetDisplayStatus(Int32)

Declaration
protected string GetDisplayStatus(int value)
Parameters
Type Name Description
System.Int32 value
Returns
Type Description
System.String

ResolveAction()

Declaration
public override void ResolveAction()
Overrides
BaseDebugAction.ResolveAction()

WithActionGet(Func<Int32>)

Declaration
public virtual DebugActionEnum WithActionGet(Func<int> actionGet)
Parameters
Type Name Description
System.Func<System.Int32> actionGet
Returns
Type Description
DebugActionEnum

WithActionSet(Action<Int32>)

Declaration
public virtual DebugActionEnum WithActionSet(Action<int> actionSet)
Parameters
Type Name Description
System.Action<System.Int32> actionSet
Returns
Type Description
DebugActionEnum

WithEnumType(Type)

Declaration
public virtual DebugActionEnum WithEnumType(Type enumType)
Parameters
Type Name Description
System.Type enumType
Returns
Type Description
DebugActionEnum
In This Article
👆 RuntimeDebugAction by ❤️ BennyKok