Debug.Log Extensions
Documentation (1.1.9)

◆ CancelDisplayButton() [1/2]

static void Sisus.Debugging.Dev.CancelDisplayButton ( [NotNull] Expression< Action >  onClicked)
static

Stop displaying a button on screen.

Calls to this method will be fully stripped from release builds.

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 a method that is being displayed on screen as a button.