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

# 遊戲資料

> PlayFab 遊戲資料概觀：限定於 title 和 namespace 實體範圍、用於遠端遊戲設定的全域索引鍵/值設定，包括內部遊戲資料。

遊戲資料是限定於您的 `title` 和 `namespace` 實體範圍的全域索引鍵/值設定儲存。使用它可遠端管理遊戲設定，而無須部署新的組建。

遊戲資料是 PlayFab 中的數個儲存功能之一，每個功能都限定於不同的實體類型。如需比較，請參閱[實體物件](/zh-TW/services/playfab/live-service-management/game-configuration/entities/entity-objects#related-features)。

## 運作方式

遊戲資料是一組索引鍵/值組，您可以在 Game Manager 中或透過 [API](https://learn.microsoft.com/en-us/rest/api/playfab/admin/title-wide-data-management?view=playfab-rest\&preserve-view=true) 進行設定。這通常稱為主要遊戲資料。

*內部*遊戲資料是一組特殊的遊戲資料，用戶端無法直接存取，可用於儲存*只*提供給您所控制之服務的設定。

<Note>
  遊戲資料值會複製並散發到 PlayFab 伺服器叢集中可能多達*數百*部的機器。在此過程中，遊戲資料會被快取，而變更最多可能需要 15 分鐘才能在這些快取中重新整理。遊戲資料最適合用於*全域常數/靜態資料*，不適合也不可靠地用作全域變數。
</Note>

<img src="https://mintcdn.com/microsoft-4404708b/dqv53299jA1M-fNi/images/playfab/live-service-management/game-configuration/titledata/tutorials/title-data-onboard.PNG?fit=max&auto=format&n=dqv53299jA1M-fNi&q=85&s=3a90b2c31d147d72cde1d8a8aad1a2c2" alt="遊戲資料的螢幕擷取畫面" width="3000" height="1583" data-path="images/playfab/live-service-management/game-configuration/titledata/tutorials/title-data-onboard.PNG" />

## 遊戲資料覆寫

遊戲資料覆寫是一組索引鍵/值組，經過儲存和管理以覆寫主要遊戲資料。此覆寫的索引鍵/值組集合會以累加作業的方式保存。使用覆寫，您可以：

* **新增**新的索引鍵/值組，方法是指定預設資料中未包含的索引鍵/值組。
* **變更**現有的索引鍵/值組，方法是指定預設資料中已存在的索引鍵/值組。這個新資料將取代現有的索引鍵/值資料。
* **移除**現有的索引鍵/值組，方法是包含現有的索引鍵但值為空白。

檢視覆寫時，每個索引鍵/值組都會以 +、 或 - 表示。

覆寫遊戲資料可以稱為主要遊戲資料的子集，可讓您更新遊戲的遠端設定，而無須部署新的組建。

<Note>
  此覆寫的索引鍵/值組集合目前只有在使用[實驗](/zh-TW/services/playfab/live-service-management/game-configuration/experiments)時才會生效。
</Note>

如果玩家屬於包含遊戲資料覆寫的實驗變體，覆寫會在伺服器端自動套用，並在用戶端與遊戲資料一起傳回。

<Note>
  遊戲資料覆寫值最多可能需要一分鐘才能重新整理並保存。
</Note>

<img src="https://mintcdn.com/microsoft-4404708b/dqv53299jA1M-fNi/images/playfab/live-service-management/game-configuration/titledata/tutorials/title-data.PNG?fit=max&auto=format&n=dqv53299jA1M-fNi&q=85&s=16682590418c79dd5afd0fb373bd6fab" alt="遊戲資料的螢幕擷取畫面" width="2999" height="1985" data-path="images/playfab/live-service-management/game-configuration/titledata/tutorials/title-data.PNG" />

## 連結

* [遊戲資料快速入門](/zh-TW/services/playfab/live-service-management/game-configuration/titledata/quickstart)
* [使用發行者資料](/zh-TW/services/playfab/live-service-management/game-configuration/titledata/using-publisher-data)


## Related topics

- [Winter Starfall PlayFab 示範遊戲概觀](/zh-TW/services/playfab/demo-game/overview.md)
- [什麼是 PlayFab？](/zh-TW/services/playfab/get-started/what-is-playfab.md)
- [取得遊戲資料](/zh-TW/services/playfab/api-references/rest/client/title-wide-data-management/get-title-data.md)
- [設定遊戲資料](/zh-TW/services/playfab/api-references/rest/server/title-wide-data-management/set-title-data.md)
- [遊戲資料快速入門](/zh-TW/services/playfab/live-service-management/game-configuration/titledata/quickstart.md)
