> ## 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.

# 圖層動作 (實驗性)

> 圖層動作 (實驗性)

# 圖層動作 (實驗性)

按鈕可用來顯示圖層的動作。

<Warning>圖層目前以實驗形式提供使用，可能會根據早期採用者的意見反應而變更行為。</Warning>

## 屬性

`type` - *"layer"*。指定動作的類型

`target` - *string*。執行動作時應顯示之 [`layer`](/zh-TW/reference/system/touchadaptationkit/layout/game-streaming-touch-layer) 的名稱。

## 備註

**圖層動作**用來讓玩家能夠使圖層顯示。

如果 [`button`](/zh-TW/reference/system/touchadaptationkit/controls/game-streaming-touch-button) 是切換按鈕，`layer` 會持續顯示，直到再次按下 `button` 為止。

## 範例

#### 具有圖層動作以顯示 selectAbility 圖層的切換按鈕

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

## 另請參閱

[觸控調整套件參考](/zh-TW/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview)\
[按鈕](/zh-TW/reference/system/touchadaptationkit/controls/game-streaming-touch-button)\
[圖層](/zh-TW/reference/system/touchadaptationkit/layout/game-streaming-touch-layer)


## Related topics

- [安裝 GDK 工具鏈](/zh-TW/home/setup-install/download-install.md)
- [使用 PlayFab 加入後端服務](/zh-TW/home/build-first-title/add-backend-services.md)
- [PC のポートの動作](/ja-jp/build/console-features/networking/game-mesh/pc-port-behavior.md)
- [XBOX コンソールのポートの動作](/ja-jp/build/console-features/networking/game-mesh/xbox-console-port-behavior.md)
- [XR-018：使用者產生的內容](/zh-TW/publishing/certification/xr/xr-018.md)
