Debug.Log Extensions
Documentation (1.1.9)

◆ DisplayButton() [1/2]

static void Debug.DisplayButton ( [NotNull] Expression< Action >  onClicked)
static

Start displaying a button on screen which calls a method when clicked.

Button will continue to be displayed until CancelDisplayButton(Expression<Action>) is called with an expression pointing to the same method.

void OnEnable()
{
Debug.DisplayButton(()=>SayHello());
}
void SayHello()
{
Debug.Log("Hello!");
}
void OnDisable()
{
Debug.CancelDisplayButton(()=>SayHello());
}
static void Log([CanBeNull]object message)
Logs a message to the Console.
Definition: Debug.cs:168
static void DisplayButton([NotNull]Expression< Action > onClicked)
Start displaying a button on screen which calls a method when clicked.
Definition: Debug.cs:4854
static void CancelDisplayButton([NotNull]Expression< Action > onClicked)
Stop displaying a button on screen.
Definition: Debug.cs:4932
Extended version of the built-in Debug class with additional methods to ease debugging while developi...
Definition: Debug.cs:34
Parameters
onClickedExpression pointing to the method to call when the button is clicked.