Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetAction(Action, long, long)

Set the action that should be executed when the button is pressed.
Read time 1 minuteLast updated 5 days ago

Definition

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. Value is defined in milliseconds.

interval

The interval between each execution of the action. Value is defined in milliseconds.