> ## 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 (実験的)

# Layer Action (実験的)

レイヤーを表示するためにボタンが使用できるアクション。

> [!WARNING]
>
> レイヤーは現在、実験的な形式で利用可能であり、早期採用者のフィードバックに基づいて動作が変更される可能性があります。

## プロパティ

`type` - *"layer"*。アクションの種類を指定します。

`target` - *string*。アクションが実行されたときに表示される [`layer`](/ja-jp/reference/system/touchadaptationkit/layout/game-streaming-touch-layer) の名前。

## 補足

**layer action** は、プレイヤーがレイヤーを表示できるようにするために使用されます。

[`button`](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-button) がトグル ボタンの場合、`button` が再度押されるまで `layer` が表示されます。

## サンプル

#### selectAbility レイヤーを表示する layer action を持つトグル ボタン

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

## 関連項目

[Touch Adaptation Kit リファレンス](/ja-jp/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)\
[Button](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-button)\
[Layer](/ja-jp/reference/system/touchadaptationkit/layout/game-streaming-touch-layer)


## Related topics

- [Economy V2 のセグメント アクション](/ja-jp/services/playfab/economy-monetization/economy-v2/player-segmented-monetization/segment-actions.md)
- [プレイヤー セグメントの構成](/ja-jp/services/playfab/player-progression/player-data/player-segment-configuration.md)
- [プレイヤー セグメント全体に対する一括アクション](/ja-jp/services/playfab/data-analytics/acting-data/action-rules-bulk-actions-for-an-entire-player-segment.md)
- [プレイヤー トリガー アクションの関数結果の送信](/ja-jp/services/playfab/api-references/rest/cloudscript/server-side-cloud-script/post-function-result-for-player-triggered-action.md)
- [アクションとルール](/ja-jp/services/playfab/data-analytics/acting-data/action-rules-overview.md)
