This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

Button Constructor

Declaration

public Button();

Declaration

public Button(Action clickEvent);

Parameters

clickEvent Action triggered when the button is clicked.

Description

Constructs a Button.