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
DebugActionInput
Inherited Members [+/-]
. . .
Assembly: com.bennykok.runtime-debug-action.dll
[Serializable]
public class DebugActionInput : FluentAction<DebugActionInput>
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
Declaration
public Action<InputResponse> inputAction
Field Value
Declaration
[Title("Input", 3)]
public InputQuery inputQuery
Field Value
Properties
Declaration
public InputResponse CurrentInputResponse { get; }
Property Value
Methods
Declaration
public override bool CanDisplayAction()
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override string GetDescription()
Returns
Type |
Description |
System.String |
|
Overrides
Declaration
public override void ResolveAction()
Overrides
Declaration
public DebugActionInput WithInputAction(Action<InputResponse> inputAction)
Parameters
Returns
Declaration
public DebugActionInput WithInputQuery(InputQuery inputQuery)
Parameters
Returns