Debug.Log Extensions
Documentation (1.1.9)

◆ CancelDisplayButton() [1/2]

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

Stop displaying a button on screen.

void OnEnable() { Debug.DisplayButton(()=>SayHello()); }

void SayHello() { Debug.Log("Hello!"); }

void OnDisable() { Debug.CancelDisplayButton(()=>SayHello()); }

Parameters
onClickedExpression pointing to a method that is being displayed on screen as a button.