Solved

[Unity] Unity Documentation

  • 19 August 2022
  • 3 replies
  • 177 views

Badge +3

Will the Unity SDK documentation be built out further? I feel it’s lacking information, especially on the 4.0 RC release. 

icon

Best answer by Andy 24 May 2023, 15:46

View original

3 replies

Userlevel 5
Badge +8

Hey @Paul Rivera thanks for the feedback! 

We have a backlog item in place to create an SDK reference page, kinda like what we have for other SDKs (iOS here: http://revenuecat.github.io/purchases-ios-docs/, React-Native here: https://revenuecat.github.io/react-native-purchases-docs/).

Is this what you had in mind? 

 

If you were thinking more about the docs at https://docs.revenuecat.com/docs, are there any specific sections where you think our Unity docs are lacking? 

I’d love to improve them. 

 

Did you run into any specific issues during the migration? 

Badge +3

Hey, any link to sdk unity documentation ? I need more info about classes & methods.

Userlevel 5
Badge +8

@Sebastien Laurent sadly we don’t have reference docs in Unity like we do for other platforms, but here’s the source code which does have a reference for every method and parameter: 
https://github.com/RevenueCat/purchases-unity/tree/main/RevenueCat/Scripts

Here’s the main class that acts as a Facade to access the rest of the SDK: 

https://github.com/RevenueCat/purchases-unity/blob/main/RevenueCat/Scripts/Purchases.cs

 

Here’s a sample app that calls just about every method in the SDK: 

https://github.com/RevenueCat/purchases-unity/tree/main/Subtester

 

And here’s the code within the sample app for most of those calls: 

https://github.com/RevenueCat/purchases-unity/blob/main/Subtester/Assets/Scripts/PurchasesListener.cs

 

And in our main docs, you should find a Unity tab for anything you need

https://www.revenuecat.com/docs/getting-started

 

Better docs for Unity are in the backlog! Hope this helps in the meantime. 

 

 

Reply