メインコンテンツまでスキップ

ストアディスプレイとセクションを統合する

Last updated on February 4, 2026

注釈:本資料はAI技術を用いて翻訳されています。

概要

この記事では、Game SDKを通じてストアディスプレイとセクション情報を取得する方法について説明します。

前提条件

AccelByte Gaming Services管理ポータルでストアを作成している必要があります。詳細については、ストアを設定、構成、準備するを参照してください。

ストアディスプレイ情報を取得する

次の関数を使用して、ストアのストアディスプレイ情報を取得します。

string storeId = "YourStoreIdFromAdminPortal";
string storeLanguage = "US";
ViewInfo[] views;

StoreDisplay storeDisplay = AccelByteSDK.GetClientRegistry().GetApi().GetStoreDisplayService();

storeDisplay.GetAllViews(storeId, storeLanguage, result =>
{
if (result.IsError)
{
// Your logic to handle errors in GetAllViews
// ...
Debug.Log($"Error GetAllViews, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
return;
}

views = result.Value;
// Your logic to run after GetAllViews is successful
});

ストアセクション情報を取得する

ストアディスプレイ情報を取得した後、ストアディスプレイのIDを取得し、それを使用して利用可能なアイテムを含むアクティブなセクションを取得できます。

次の関数を使用して、ストアのアクティブなセクションを取得します。

string storeId = "YourStoreIdFromAdminPortal";
string viewId = "YourViewId";
string storeLanguage = "en-US";
string storeRegion = "US";
SectionInfo[] viewSections;

StoreDisplay storeDisplay = AccelByteSDK.GetClientRegistry().GetApi().GetStoreDisplayService();

storeDisplay.ListActiveSectionContents(storeId, viewId, storeRegion, storeLanguage, result =>
{
if (result.IsError)
{
// Your logic to handle errors in ListActiveSectionContents
// ...
Debug.Log($"Error ListActiveSectionContents, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
return;
}

viewSections = result.Value;
// Your logic to run after ListActiveSectionContents is successful
});