ConvaiInputManager.cs(14,11): error CS0535: 'ConvaiInputManager' does not implement interface member

Original Discord Post by petroslouca | 2024-09-29 22:43:50

Hello,

I have created a new project with Unity 2022.3.21f1 following your video guide (https://www.youtube.com/watch?v=anb9ityi0MQ) with the latest Convai Unity SDK. Afterwards, I performed the VR package installation from “Convai” menu → Package Management → Install VR Package but the following error occurred:

ConvaiInputManager.cs(14,11): error CS0535: ‘ConvaiInputManager’ does not implement interface member ‘Controls.IPlayerActions.OnEnterPress(InputAction.CallbackContext)’

I followed the MS Visual Studio suggestion and added the following code (ConvaiInputManager.cs, lines 195-198), resolving the error:

public void OnEnterPress(InputAction.CallbackContext context)
{
throw new NotImplementedException();
}

Please advice if that is the correct procedure followed and if yes, please note it in your next Unity SDK version.

Thank you!

Embedded Content:
Quick Guide On Adding AI Characters to Your Unity Project | Convai …
In this updated tutorial, we will show you how you can very easily import the Convai SDK into your Unity project to create intelligent NPCs that can communicate with you naturally in real-time, perceive their virtual surroundings, and generate complex actions on your command. Throughout this tutorial, we guide you on setting up the Convai plugin…
Link: https://www.youtube.com/watch?v=anb9ityi0MQ

Reply by k3kalinix | 2024-09-29 22:44:15

Hello <@606256062613684224>

Reply by k3kalinix | 2024-09-29 22:45:00

Reply by k3kalinix | 2024-09-29 22:45:21

Assets\Convai\Resources

Reply by k3kalinix | 2024-09-29 22:45:24

Please remove and replace Controls.cs and Controls.inputactions files with these.

Reply by k3kalinix | 2024-09-29 22:46:08

It will be fixed in the next release.

Reply by petroslouca | 2024-09-29 23:32:46

Thank you!

One observation… Enabling the XR Device Simulator (Project Settings → XR Plug-in Management → XR Interaction Toolkit → Use XR Device Simulator in scenes), is installed without any issues, but is for version 2.5.4 and not for 2.5.2 which is the version used in the Convai VR Package. Therefore, now I have 2 folders, one for each version under “Assets\Convai\Samples\XR Interaction Toolkit” folder. The folder “2.5.4” contains only the “XR Device Simulator” folder.

Reply by k3kalinix | 2024-09-29 23:34:14

That’s not a problem.

This conversation happened on the Convai Discord Server, so this post will be closed.