ButtonStateStyle

altspace/utilities/behaviors. ButtonStateStyle

new ButtonStateStyle(configopt)

A behavior that changes the color of an object when the cursor interacts with it.

Parameters:
Name Type Attributes Description
config Object <optional>

Optional parameters.

Properties
Name Type Attributes Default Description
originalColor THREE.Color <optional>

Base material color.

overBrightness Number <optional>
1.5

Material brightness when cursor is over button.

downBrightness Number <optional>
0.5

Material brightness when cursor is clicked.