admin管理员组

文章数量:1289496

I'm trying to record events from my Unity game, but I keep getting this error in Unity:

The type or namespace name 'Amplitude' could not be found.

I've already went into Windows-> Package manager->and then install package from git, but I'm still getting the error. Can anyone help me resolve this issue?

using AmplitudeSDK;

        void Awake(){
            Amplitude amplitude = Amplitude.getInstance();
            amplitude.setServerUrl(";);
            amplitude.logging = true;
            amplitude.trackingSessionEvents(true);
            amplitude.init(API_KEY);
        }

I tried using what they had in the SDK tutorial, but there was never a mention of including package name or anything so I'm lost on what to do. I'm also pretty new at using Unity as well.

本文标签: cHow to record events with Amplitude with Unity SDKStack Overflow