Hey can anyone help to get back convai in the top bar it as it was suddenly gone after i deleted lib folder and then after restarting unity I had the convai npcs nd all but error was coming that Convai could nota be found and infact everythings is intact and i cant reimport cauz i have edited convai player scripts
Hello @pateldhrushmesh,
Welcome to the Convai Developer Forum!
The issue is likely due to code not compiling properly. Please check your Console Log for errors and resolve them.
Since youāve customized the Convai scripts, it will be difficult for us to provide support for this specific case. Let us know if you need general guidance!
No it was working properly and it is not scripting problem . Due to sql issues i deleted lib folder then I restored and replaced everything from recycle bin and then this (Assets\ConvAIConfig.cs(2,7): error CS0246: The type or namespace name āConvAIā could not be found (are you missing a using directive or an assembly reference?) errror is coming
The script you shared is not part of Convaiās default scripts. As the error suggests, it is missing a namespace. Your IDE should be able to help resolve this automatically. Please check the namespaces in your script.
Since youāve customized your project, this falls outside our support scope. Understanding your own code and Unity setup is essential here. If youāre unsure how to proceed, you might consider using AI assisted tools to help troubleshoot the issue.
Please share a full screenshot of your Console logs so we can analyze the issue better.
Also, disable the āCollapsibleā option to ensure all logs are fully visible.
Like should I just reimport ConvAi again in my project or it will break my game?
Please share the script.
using UnityEngine;
using ConvAI;
public class ConvAIConfig : MonoBehaviour
{
void Start()
{
ConvAIAPI.Initialize(apiKey);
Debug.Log("ConvAI API Initialized!");
}
}
Okay, make a backup of this code and then delete it.
Yoo thanks man It worked
but I couldnt get the convai in my topbar so for that i have to reimport right?
Please share the logs.
Now It is showing in the Topbar thanks for the help man
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.