This documentation is for Unity SDK 1.x through 3.x. If you are using Unity SDK 4.x or above, please visit our new documentation.

Ask a Question

Ask a Question
Answered

Is there a way to push out json output instead of string or bool based output on the microservices auto generated swagger

this is a current example public async Task GetActiveCurrencyId()
{
var inventoryView = await Services.Inventory.GetCurrent();
if (inventoryView.currencies.Count > 0)
{
KeyValuePair<string, long> firstCurrency = inventoryView.currencies.FirstOrDefault();
return firstCurrency.Key;
}
return "";
}

Answered

Custom content object not appearing in Content Manager due to case sensitivity

Why is my custom_dto content not appearing in Beamable Content Manager? I have a file named CustomDTO.cs with these contents:

Answered

Resolve groups of content types

Hello there! I'm trying some Beamable features and I have some doubts regarding Content:
1.- First of all is there any way to resolve a complete group of content type? Let's say I have multiple armour items, all of them instances of the class Armour. Can I resolve all of them at once to get the complete list? A workaround would be to create another ContentObject class with a list of armours, but this doesn't look very clean to me.
2.- Following the previous mentioned workaround, looks like I'm having some issues with polymorphism. If I have multiple classes inheriting from Armour with different behaviours and different data, the serialization works fine, but when I download the content the deserialization fails, I'm guessing this could be related to Beamable not knowing which derived type to use for deserialization.

Answered

Leaderboard questions- GetAssignedBoard, GetBoard, Leaderboardref

Hi! I have some questions regarding the leaderboard.
1)What's the difference between GetAssignedBoard() and GetBoard() ? Looking at both functions, they seem to do the same thing as they take the same arguments and have the same return type.
2)What is a LeaderboardRef and how do we obtain it? When is it more interesting to use LeaderboardRef instead of string boardId?
3)Is it correct to assume that long? focus = null pertains to a playerId, and that by providing this field, the function will return leaderboard entries around this player?

Answered

Iran Region Availability

Hello.

Answered

How do I implement a currency that increases over time on the server?

I have an implementation design question - how would I go about implementing a currency (or a stat, doesn't matter for this purpose) that generates over time on the server?

Answered

How can I fetch more than 20 items in a given shop from the commerce service?

I am fetching items from the commerce service via a subscription:
_commerceService = _beamableAPI.CommerceService;

Answered

Managing app store refunds

Does Beamable support receiving notifications for refunds from the app stores? We are trying to prevent issues with non-consumables to prevent people from still getting access to items despite requesting a refund.

Answered
Answered

Help updating events with REST API

Hello, I think this will end up being a multi-part question. I'm ultimately wanting to update events via the REST api for some testing tools.