[Unity] Display monthly price of a annual subscription

  • 26 December 2022
  • 3 replies

Userlevel 2
Badge +5

As far as I can see, there is no property or method to directly get the monthly price of an annual subscription in Unity.

I found this thread from a month ago with the same issue, but everything discussed in there only applies for the native Android and iOS SDKs: 


How do we calculate this in Unity and show the currency symbol in the correct position (some countries have it before and same after the price)?


Best answer by Michael Fogel 28 December 2022, 23:47

View original

3 replies

Userlevel 3
Badge +6

Hey Maru, 


Unfortunately we dont have an easy way to do this as of now but I will pass this along to the team. However I can suggest a possible workaround to get this done but you would have to do it programmatically on your end. 


What I would do is get the products price from the StoreProduct object and then divide that price by 12. The only problem with this would be that you can run into issues like dealing with all of the global currencies and localized styles (e.g. 10,00 vs 10.00).


I know Unity has a build in localization package which might work to help solve this, but I am not sure. I would recommend trying to use this combined with the price and then dividing that by 12 and displaying that price as the “Monthly” version of the “Annual” price. 

Badge +4

Is this coming in the near future? 

Badge +2

This would be a nice feature to have. It’s pretty common to show what the monthly cost breaks down to for different subscription lengths and with all the different currency formats out there it’s difficult to properly format it even if we convert the amount ourselves.