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

# Asset

> Asset

# Asset

タッチ アダプテーション パッケージに含まれているカスタム画像への参照。

## プロパティ

`type` - *string*。"asset"

`value` - *string*。参照される画像アセットの名前。

`opacity` - *number*。アセットに適用される不透明度。既定値は 1.0 です。

## サンプル

```JSON theme={null}
{
    "type": "asset",
    "value": "someImage",
    "opacity": 1
}
```

## 補足

すべてのアセットは、PNG 画像、または JSON スプライト アトラスとペアになった PNG スプライト シート画像のいずれかです。

アセットは、すべての解像度 (1.0x、1.5x、2.0x、3.0x、4.0x) で含める必要があり、少なくとも中立言語で含める必要があります。ローカライズされたアセットもサポートされています。

`value` は、ファイル拡張子なしで含まれたアセットの名前です。例: "someImage.png" というアセットの場合、値は "someImage" にする必要があります。

スプライト アセットの場合、`value` フィールドは `spriteSheetFileName/spriteName` の形式にする必要があります。例: "icons/fire" は icons.png および icons.json ファイル内の 'fire' スプライトにマップされます。

アセットの想定される寸法は、アセットが使用される場所によって異なります。スプライト アセットの場合、個々のスプライトは使用される場所で想定される寸法に準拠する必要があります。

使用箇所ごとの具体的な寸法については、コントロールごとのドキュメントを確認してください。

## 関連コントロール

[Arcade Buttons](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-arcadebuttons)\
[Button](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-button)\
[Directional Pad](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-directionalpad)\
[Joystick](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick)\
[Throttle](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle)\
[Touchpad](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-touchpad)

## 関連項目

[Touch Adaptation Kit リファレンス](/ja-jp/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview)


## Related topics

- [Delete Asset](/api-reference/multiplayerserver/delete-asset.md)
- [List Asset Summaries](/api-reference/multiplayerserver/list-asset-summaries.md)
- [Branding and marketing assets](/publishing/game-publishing/resources/managed-support/how-to-access-branding-and-marketing-assets.md)
- [game_asset_deleted](/es/services/playfab/api-references/events/MultiplayerServers/game-asset-deleted.md)
