docs.unity3d.com
    Show / Hide Table of Contents

    Class PlayerBalances

    Inheritance
    Object
    PlayerBalances
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Services.Economy
    Syntax
    [Obsolete("The interface provided by Economy.PlayerBalances has been replaced by EconomyService.Instance.PlayerBalances, and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public class PlayerBalances

    Methods

    DecrementBalanceAsync(String, Int32, PlayerBalances.DecrementBalanceOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.DecrementBalanceAsync(string currencyId, int amount, DecrementBalanceOptions options) has been replaced by EconomyService.Instance.PlayerBalances.DecrementBalanceAsync(string currencyId, int amount, DecrementBalanceOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public async Task<PlayerBalance> DecrementBalanceAsync(string currencyId, int amount, PlayerBalances.DecrementBalanceOptions options = null)
    Parameters
    Type Name Description
    String currencyId
    Int32 amount
    PlayerBalances.DecrementBalanceOptions options
    Returns
    Type Description
    Task<PlayerBalance>

    GetBalancesAsync(PlayerBalances.GetBalancesOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.GetBalancesAsync(GetBalancesOptions options) has been replaced by EconomyService.Instance.PlayerBalances.GetBalancesAsync(GetBalancesOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public async Task<GetBalancesResult> GetBalancesAsync(PlayerBalances.GetBalancesOptions options = null)
    Parameters
    Type Name Description
    PlayerBalances.GetBalancesOptions options
    Returns
    Type Description
    Task<GetBalancesResult>

    IncrementBalanceAsync(String, Int32, PlayerBalances.IncrementBalanceOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.IncrementBalanceAsync(string currencyId, int amount, IncrementBalanceOptions options) has been replaced by EconomyService.Instance.PlayerBalances.IncrementBalanceAsync(string currencyId, int amount, IncrementBalanceOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public async Task<PlayerBalance> IncrementBalanceAsync(string currencyId, int amount, PlayerBalances.IncrementBalanceOptions options = null)
    Parameters
    Type Name Description
    String currencyId
    Int32 amount
    PlayerBalances.IncrementBalanceOptions options
    Returns
    Type Description
    Task<PlayerBalance>

    SetBalanceAsync(String, Int64, PlayerBalances.SetBalanceOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.SetBalanceAsync(string currencyId, long balance, SetBalanceOptions options) has been replaced by EconomyService.Instance.PlayerBalances.SetBalanceAsync(string currencyId, long balance, SetBalanceOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public async Task<PlayerBalance> SetBalanceAsync(string currencyId, long balance, PlayerBalances.SetBalanceOptions options = null)
    Parameters
    Type Name Description
    String currencyId
    Int64 balance
    PlayerBalances.SetBalanceOptions options
    Returns
    Type Description
    Task<PlayerBalance>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023