amplitude / unity-plugin

Official Amplitude Unity Plugin
https://developers.amplitude.com/docs/unity
MIT License
44 stars 34 forks source link

How to set user groups with SDK #110

Closed kbunarjo closed 1 year ago

kbunarjo commented 2 years ago

Summary

I've added the SDK through the Unity SDK package manager, but I'm unable to set the user group. The documentation says i can call setGroup on the instance of Amplitude, but my editor says it doesn't exist. I also checked the Amplitude.cs source code and couldn't find anything about groups there.

Specifically, this line of code from the documentation example doesn't actually work:

Amplitude.getInstance().setGroup("orgId", "15");
kbunarjo commented 1 year ago

Hi, any update here this is pretty critical for us to use any amplitude events in our game.

qingzhuozhen commented 1 year ago

Hi @kbunarjo, sorry for the late reply and doc confusion earlier. We are working to add support for that method in https://github.com/amplitude/unity-plugin/pull/114

kbunarjo commented 1 year ago

Closing this issue cause it's fixed with the latest release.

Thanks @qingzhuozhen !