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

RepeatButton.SetAction

Declaration

public void SetAction(Action clickEvent, long delay, long interval);

Parameters

clickEvent The action to execute.
delay The initial delay before the action is executed for the first time.
interval The interval between each execution of the action.

Description

Set the action that should be executed when the button is pressed.