简体   繁体   中英

How do I get rid of those ambiguous call errors with GoogleARCore Wrappers (CS0121)

One error that Unity is pointing to is with GoogleARCore CameraApi with the following lines:

    public TrackingState GetTrackingState(IntPtr cameraHandle)
    {
        ApiTrackingState apiTrackingState = ApiTrackingState.Stopped;
        ExternApi.ArCamera_getTrackingState(m_NativeSession.SessionHandle,
            cameraHandle, ref apiTrackingState);
        return apiTrackingState.ToTrackingState();
    }

The error Unity points to is the return statement. As this is a snippet from a GoogleARCore, it should be fair to say that there should not be any errors. However, Unity is pointing towards this as an error? There are more of these similar errors with GoogleARCore Wrappers.

Hey so I figured out some way to fix those errors. Reinstalling GoogleARCore and a few Unity crashes later, it worked out. It kept reporting that I had some Unity bug issue.

Thanks for listening ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM