Show / Hide Table of Contents

Class DebugActionInput

Input action will be represented as a button in the debug menu, once triggered, an input field will popup, the input will be split by space and parse using regex, if more than one paramenters is defined and you have space between your string, use double quote for string during input.

Inheritance
System.Object
BaseDebugAction
FluentAction<DebugActionInput>
DebugActionInput
Inherited Members [+/-]
. . .
FluentAction<DebugActionInput>.WithId(String)
FluentAction<DebugActionInput>.WithAction(Action)
FluentAction<DebugActionInput>.WithName(String)
FluentAction<DebugActionInput>.WithDescription(String)
FluentAction<DebugActionInput>.WithGroup(String)
FluentAction<DebugActionInput>.WithShortcutKey(String)
FluentAction<DebugActionInput>.WithActionColor(Color)
FluentAction<DebugActionInput>.WithClosePanelAfterTrigger(Boolean)
BaseDebugAction.group
BaseDebugAction.name
BaseDebugAction.id
BaseDebugAction.description
BaseDebugAction.shortcutKey
BaseDebugAction.closePanelAfterTrigger
BaseDebugAction.actionColor
BaseDebugAction.unityAction
BaseDebugAction.action
BaseDebugAction.actionStatus
BaseDebugAction.Setup()
Namespace: BennyKok.RuntimeDebug.Actions
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
[Serializable]
public class DebugActionInput : FluentAction<DebugActionInput>
Examples
RuntimeDebugSystem.RegisterActions(
    DebugActionBuilder.Input()
        .WithName("Clear Player Prefs")
        .WithInputQuery(InputQuery.Create().Query("clear", ParamType.String, "Type clear to confirm clearing"))
        .WithInputAction((response) =>
         {
             if (response.GetParamString("clear") == "clear")
                 PlayerPrefs.DeleteAll();
         })
);

Fields

inputAction

Declaration
public Action<InputResponse> inputAction
Field Value
Type Description
System.Action<InputResponse>

inputQuery

Declaration
[Title("Input", 3)]
public InputQuery inputQuery
Field Value
Type Description
InputQuery

Properties

CurrentInputResponse

Declaration
public InputResponse CurrentInputResponse { get; }
Property Value
Type Description
InputResponse

Methods

CanDisplayAction()

Declaration
public override bool CanDisplayAction()
Returns
Type Description
System.Boolean
Overrides
BaseDebugAction.CanDisplayAction()

GetDescription()

Declaration
public override string GetDescription()
Returns
Type Description
System.String
Overrides
BaseDebugAction.GetDescription()

ResolveAction()

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

WithInputAction(Action<InputResponse>)

Declaration
public DebugActionInput WithInputAction(Action<InputResponse> inputAction)
Parameters
Type Name Description
System.Action<InputResponse> inputAction
Returns
Type Description
DebugActionInput

WithInputQuery(InputQuery)

Declaration
public DebugActionInput WithInputQuery(InputQuery inputQuery)
Parameters
Type Name Description
InputQuery inputQuery
Returns
Type Description
DebugActionInput
In This Article
👆 RuntimeDebugAction by ❤️ BennyKok