Knob

The styling attributes for a button like component that can be interacted with by the player.

Properties

background - object, optional. Can either be a color or image asset.

faceImage - object, optional. Can either be an icon or image asset.

opacity - number, optional. The opacity to be applied to the component. Default to 1.0 for all states but disabled.

stroke - object, optional. Styling instructions for stroke to be used on the outline of the component.

Sample

{
    "knob": {
        "background" : {
            "type": "color",
            "value":  "#107C10"
        },
        "faceImage" : {
            "type": "icon",
            "value": "run"
        }
    },
}

Remarks

The knob is a component of a more complex control (e.g., joystick, throttle) that can be interacted with by the player.

The default visual style of the knob is different per control.

Joystick
Throttle

See also

Touch Adaptation Kit Reference