ButtonStateStyle

altspace/utilities/behaviors. ButtonStateStyle

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

Constructor

new ButtonStateStyle(configopt)

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.

Extends

Members

type :string

The string name of this class. This is used for THREE.Object3D#getBehaviorByType.

Overrides:

Methods