Debug.Log Extensions
Documentation (1.1.9)

◆ CancelDisplayButton() [2/2]

static void Debug.CancelDisplayButton ( [NotNull] string  label)
static

Stop displaying a button on screen.

void OnEnable() { Debug.DisplayButton("Say Hello", ()=>Debug.Log("Hello!")); }

void OnDisable() { Debug.CancelDisplayButton("Say Hello"); }

Parameters
labelLabel of a button that is being displayed on screen.