I’m getting compilation errors with the code from the screenshot I shared. The issue is that IConvaiNarrativeDesign and character.NarrativeDesign are not being recognized.
Can you show me the correct namespace, required references, and a working code snippet for accessing IConvaiNarrativeDesign and character.NarrativeDesign?
From what I can see, this looks more related to your Unity / C# scripting knowledge. Your IDE setup may not be configured correctly, so the required namespaces and references are not being detected or added automatically.
Since this is more on the Unity/C# scripting side, I recommend using an AI assistant or reviewing basic Unity scripting setup to help resolve the IDE/reference issue.
I’m sharing a screenshot below showing that the code compiles correctly on my side, along with the working code for reference.
private void HandleSectionData(NarrativeSectionData data)
{
Debug.Log($“Section ID: {data.SectionId}”);
// data.BehaviorTreeCode and data.BehaviorTreeConstants available here
}
[Package Manager Window] Error adding/removing packages: com.convai.convai-sdk-for-unity@4.2.0.
Unable to add packages:
Unable to add package [com.convai.convai-sdk-for-unity@4.2.0]:
Cannot download the package. Your account does not grant permission to use the package. Please visit the Asset Store to acquire the package and add it to your account:
Access to ‘https://download.packages.unity.com/com.convai.convai-sdk-for-unity/-/com.convai.convai-sdk-for-unity-4.2.0.tgz’ was denied
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()