Class FluentAction<T>
Base debug action class that has common fluent methods
Inheritance
System.Object
FluentAction<T>
Inherited Members [+/-]
. . .
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
[Serializable]
public class FluentAction<T> : BaseDebugAction where T : FluentAction<T>
Type Parameters
Methods
WithAction(Action)
Declaration
public virtual T WithAction(Action action)
Parameters
Type |
Name |
Description |
System.Action |
action |
|
Returns
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
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
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
WithGroup(String)
The group this action belongs to
Declaration
public virtual T WithGroup(string group)
Parameters
Type |
Name |
Description |
System.String |
group |
|
Returns
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
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
WithShortcutKey(String)
Declaration
public virtual T WithShortcutKey(string keycode)
Parameters
Type |
Name |
Description |
System.String |
keycode |
|
Returns