게임 만들기

VirtualButtonsOptions

Documentation for VirtualButtonsOptions.

VirtualButtonsOptions

Documentation for VirtualButtonsOptions.

Properties

buttons

buttons: VirtualButtonConfig[]

Button definitions

right?: string | undefined

CSS position from right edge (default: "24px")

bottom?

bottom?: string | undefined

CSS position from bottom edge (default: "24px")

opacity?

opacity?: number | undefined

Opacity (default: 0.6)

gap?

gap?: number | undefined

Gap between buttons in px (default: 12)

layout?

layout?: "horizontal" | "vertical" | "diamond" | undefined

Layout direction (default: "horizontal")

visible?

visible?: boolean | undefined

Whether to show (default: auto-detect touch)