Show / Hide Table of Contents

Class FluentAction<T>

Base debug action class that has common fluent methods

Inheritance
System.Object
BaseDebugAction
FluentAction<T>
DebugActionButton
DebugActionEnum
DebugActionFlag
DebugActionInput
DebugActionToggle
Inherited Members [+/-]
. . .
BaseDebugAction.group
BaseDebugAction.name
BaseDebugAction.id
BaseDebugAction.description
BaseDebugAction.shortcutKey
BaseDebugAction.closePanelAfterTrigger
BaseDebugAction.actionColor
BaseDebugAction.unityAction
BaseDebugAction.action
BaseDebugAction.actionStatus
BaseDebugAction.ResolveAction()
BaseDebugAction.CanDisplayAction()
BaseDebugAction.GetDescription()
BaseDebugAction.Setup()
Namespace: BennyKok.RuntimeDebug.Actions
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
[Serializable]
public class FluentAction<T> : BaseDebugAction where T : FluentAction<T>
Type Parameters
Name Description
T

Methods

WithAction(Action)

Assign primary action

Declaration
public virtual T WithAction(Action action)
Parameters
Type Name Description
System.Action action
Returns
Type Description
T

WithActionColor(Color)

The tint color for this action displayed in the debug menu

Declaration
public virtual T WithActionColor(Color actionColor)
Parameters
Type Name Description
UnityEngine.Color actionColor
Returns
Type Description
T

WithClosePanelAfterTrigger(Boolean)

Should the debug menu be closed after the action was triggered?

Declaration
public virtual T WithClosePanelAfterTrigger(bool closePanelAfterTrigger = true)
Parameters
Type Name Description
System.Boolean closePanelAfterTrigger
Returns
Type Description
T

WithDescription(String)

The description of this action to be displayed in the tooltip panel

Declaration
public virtual T WithDescription(string description)
Parameters
Type Name Description
System.String description
Returns
Type Description
T

WithGroup(String)

The group this action belongs to

Declaration
public virtual T WithGroup(string group)
Parameters
Type Name Description
System.String group
Returns
Type Description
T

WithId(String)

Assign specific id to the action, can be use for unregistering.

Declaration
public virtual T WithId(string id)
Parameters
Type Name Description
System.String id

Id of the action

Returns
Type Description
T

WithName(String)

The name to be displayed in the debug menu

Declaration
public virtual T WithName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
T

WithShortcutKey(String)

A shortcut keyboard key to trigger this action when the debug menu is not visible, see https://docs.unity3d.com/Manual/class-InputManager.html for availble key names

Declaration
public virtual T WithShortcutKey(string keycode)
Parameters
Type Name Description
System.String keycode
Returns
Type Description
T
In This Article
👆 RuntimeDebugAction by ❤️ BennyKok