> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Layer Action (Experimental)

> Layer Action (Experimental)

# Layer Action (Experimental)

An action that a button can use to display a layer.

<Warning>Layers are currently available for use in experimental form and may change behavior based on early adopter feedback.</Warning>

## Properties

`type` - *"layer"*. Specifies the type of the action

`target` - *string*. The name of the [`layer`](/reference/system/touchadaptationkit/layout/game-streaming-touch-layer) that should be shown when the action is taken.

## Remarks

The **layer action** is used to allow the player to cause a layer to be displayed.

If the [`button`](/reference/system/touchadaptationkit/controls/game-streaming-touch-button) is a toggle button, the `layer` will be displayed until the `button` is pressed again.

## Sample

#### A toggle button that has a layer action to show the selectAbility layer

```JSON theme={null}
{
    "type": "button",
    "action": {
        "type": "layer",
        "target": "selectAbility"
    },
    "styles": {
        "default": {
            "faceImage": {
                "type": "icon",
                "value": "add"
            }
        }
    },
    "toggle" : true
}
```

## See Also

[Touch Adaptation Kit Reference](/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview)\
[Button](/reference/system/touchadaptationkit/controls/game-streaming-touch-button)\
[Layer](/reference/system/touchadaptationkit/layout/game-streaming-touch-layer)


## Related topics

- [Touch Adaptation Kit (TAK) Reference](/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
- [Touch Adaptation Kit](/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [D3D12EnableExperimentalFeatures](/reference/graphics/d3d12/functions/d3d12enableexperimentalfeatures_public.md)
- [Referencia del kit de adaptación táctil (TAK)](/es/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
- [Touch Adaptation Kit (TAK) 参考](/zh-CN/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
