コンストラクタ
Protected
_Protected
_Protected
_Protected
_Protected
Optional
_The value
property represents an arbitrary value associated with this button.
This value can be used by classes listening to events from multiple buttons to differentiate the operations based on this value.
Readonly
viewStatic
prefixedOptional
context: anyProtected
check現在のボタンの有効、無効状態を取得する
ボタンが有効か否か
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional
fn: (Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Optional
context: anyAdd a one-time listener for a given event.
Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: keyof ThreeMouseEventMap<Value>Remove the listeners of a given event.
Optional
fn: (Optional
context: anyOptional
once: booleanProtected
updateProtected
update
The
ButtonInteractionHandler
class is responsible for managing the interactions with button-like objects. Each button-like object can be represented as aClickableMesh
,ClickableSprite
, orClickableGroup
, and can have an associated value. TheButtonInteractionHandler
class handle the interaction events and update the state of the button-like object accordingly.The generic parameter
Value
represents the type of thevalue
property associated with this button.