How to Access ConvaiActionsHandler.MoveTo(GameObject) from External Script?

Hi team! I’m currently integrating Convai SDK into my Unity VR project and trying to make the NPC guide the player to specific locations through code. I follow the AI-powered Onboarding Character for Digital Twin Environments | Convai Unity Tutorial, and I receive the following error:

CS0122: ‘ConvaiActionsHandler.MoveTo(GameObject)’ is inaccessible due to its protection level

Hello @2413967556,

Welcome to the Convai Developer Forum!

Just make the function Public.


I change it, but it doesn’t work either

Of couse not this. MoveTo function.

oh, now I got it! thx

1 Like