实验性
实验性
添加一个回调函数,当按钮被按下时将会调用该回调函数。
Adds a callback that will be called when a button is pushed.
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
此函数可以在早期执行模式下调用。
This function can be called in early-execution mode.
实验性
移除一个回调函数,使其不会在按钮被按下时调用。
Removes a callback from being called when a button is pushed.
此函数无法在只读模式下调用。
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
此函数可以在早期执行模式下调用。
This function can be called in early-execution mode.
管理与按钮被按下时相关的回调函数。
Manages callbacks that are connected to when a button is pushed.
示例: buttonPushEvent.ts