Unity Gaming Services Use Cases - Error CS1061 với AnalyticsService when open Project

Hello everyone,

I recently downloaded a Unity Gaming Services Use Cases repository and opened it using Unity Editor 6 (6000.0.23f1). When opening the project, Unity prompted me to enter Safe Mode due to errors. After checking the Console, I found multiple CS1061 errors related to IAnalyticsService, such as:

Assets\Use Case Samples\AB Test Level Difficulty\Scripts\AnalyticsManager.cs(41,39): error CS1061: 'IAnalyticsService' does not contain a definition for 'CustomData' and no accessible extension method 'CustomData' accepting a first argument of type 'IAnalyticsService' could be found (are you missing a using directive or an assembly reference?)

I checked but couldn’t find the CustomData method in IAnalyticsService. I’m wondering if this is due to an API change or if I’m missing a required package.

Has anyone encountered this issue before or knows how to fix it?

Any help would be greatly appreciated!

Thanks in advance!

Hello,
We are aware of the update problem and have it in our backlog. We plan to bundle it with another update to the samples. Updating Unity sometimes forces an update to the package. In this case, you are probably having com.unity.services.analytics updated to 6.+
Try setting it to this version: "com.unity.services.analytics": "4.4.2", in the manifest.json

We will still update this along another update.
Cheers!

Hello,

Thank you for the quick response! I really appreciate the clarification. I will try setting com.unity.services.analytics to version 4.4.2 in manifest.json and see if it resolves the issue.

Looking forward to the future update that addresses this! Thanks again for the support.

Cheers!