ドキュメント

​
​

Development

User Acquisition

Monetization

産業

Economy

Economy

LiveOps
​
​
Economy
  • Overview
  • Get started
  • Concepts
  • Tutorials
  • Reference
    • Economy SDK guide
      • Installation
      • Configuration
      • Common objects
      • Player balances
      • Player inventory
      • Purchases
      • Editor tools
      • Exceptions
      • Quick reference
      • Game Overrides
    • Parameters of operation
  • Privacy and consent
  1. Economy
  2. Economy SDK ガイド

クイックリファレンス

View a quick reference guide for all available Economy SDK methods.
読み終わるまでの所要時間 4 分
最終更新 8ヶ月前

以下に、SDK で提供されるメソッドのクイックリファレンスを示します。詳細については、個々の名前空間のドキュメントを参照してください。

設定

Configuration
名前空間のメソッドを使用すると、グローバル Economy 設定からアイテムを取得できます。
これらのメソッドの詳細については、SDK の設定 を参照してください。
使用可能なメソッドは以下のとおりです。
public async Task<List<ConfigurationItemDefinition>> SyncConfigurationAsync();public List<CurrencyDefinition> GetCurrencies()public CurrencyDefinition GetCurrency(string id)public List<InventoryItemDefinition> GetInventoryItems()public InventoryItemDefinition GetInventoryItem(string id)public List<VirtualPurchaseDefinition> GetVirtualPurchases()public VirtualPurchaseDefinition GetVirtualPurchase(string id)public List<RealMoneyPurchaseDefinition> GetRealMoneyPurchases()public RealMoneyPurchaseDefinition GetRealMoneyPurchase(string id)

プレイヤーの残高

PlayerBalances
名前空間のメソッドを使用して、ユーザーの通貨残高の取得と更新を行うことができます。これらのメソッドは、Authentication SDK から、現在サインインしているプレイヤーの残高を返します。
これらのメソッドの詳細については、プレイヤーの残高 を参照してください。
使用可能なメソッドは以下のとおりです。
public async Task<GetBalanceResponse> GetBalancesAsync(GetBalancesOptions options = null)public async Task<PlayerBalanceDefinition> SetBalanceAsync(string currencyId, int balance, SetBalanceOptions options = null)public async Task<PlayerBalanceDefinition> IncrementBalanceAsync(string currencyId, int amount, IncrementBalanceOptions options = null)public async Task<PlayerBalanceDefinition> DecrementBalanceAsync(string currencyId, int amount, DecrementBalanceOptions options = null)

プレイヤーのインベントリ

PlayerInventory
名前空間のメソッドを使用して、プレイヤーのインベントリインスタンスの取得と更新を行うことができます。これらのメソッドは、Authentication SDK から、現在サインインしているプレイヤーのインベントリデータを返します。
これらのメソッドの詳細については、プレイヤーのインベントリ を参照してください。
使用可能なメソッドは以下のとおりです。
public async Task<GetInventoryResult> GetInventoryAsync(GetInventoryOptions options = null)public async Task<PlayerInventoryInstance> AddInventoryItemAsync(string inventoryItemId, AddInventoryItemOptions options = null)public async Task<PlayerInventoryInstance> UpdateInventoryInstanceAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, UpdatePlayersInventoryItemOptions options = null)public async Task DeleteInventoryInstanceAsync(string playersInventoryItemId, DeletePlayersInventoryItemOptions options = null)

購入

Purchases
名前空間のメソッドを使用すると、プレイヤーのために仮想購入を行ったり、リアルマネーでの購入に対してアイテム授受を行ったりすることができます。これらのメソッドは、Authentication SDK を使用して現在サインインしているプレイヤーのために購入を行います。
これらのメソッドの詳細については、購入 を参照してください。
使用可能なメソッドは以下のとおりです。
public async Task<MakeVirtualPurchaseResult> MakeVirtualPurchaseAsync(string virtualPurchaseId, MakeVirtualPurchaseOptions options = null)public async Task<RedeemAppleAppStorePurchaseResult> RedeemAppleAppStorePurchaseAsync(RedeemAppleAppStorePurchaseArgs args)public async Task<RedeemGooglePlayPurchaseResult> RedeemGooglePlayPurchaseAsync(RedeemGooglePlayStorePurchaseArgs args)

Copyright © 2026 Unity Technologies
法規事項プライバシーポリシークッキーDocumentation Terms of Use私の個人情報を販売または共有しないプライバシーに関する選択 (クッキー設定)

"Unity" の名称、Unity のロゴ、およびその他の Unity の商標は、米国およびその他の国における Unity Technologies またはその関係会社の商標または登録商標です (詳しくはこちら)。その他の名称またはブランドは該当する所有者の商標です。

一部のページは利便性向上のため機械翻訳を使用しており、内容に不正確な表現が含まれる場合があります。内容に齟齬または不一致が生じた場合は、英語版を正本とします。

  • このページ
    • 設定

    • プレイヤーの残高

    • プレイヤーのインベントリ

    • 購入


このページの問題を報告する