I’m receiving this error when using WebGL for Unity - I’ve tried 3 different Unity versions and have gotten the error on all 3? Any ideas?
Assets\Convai\Scripts\Editor\Character\ConvaiCharacterImporter.cs(179,45): error CS0117: ‘DirectoryUtility’ does not contain a definition for ‘GetRelativeProjectPath’
Could you let us know which version of the Convai SDK you are using? Additionally, please share a screenshot of your Console Logs showing all errors. This will help us diagnose the issue more effectively.
Assets\Convai\Scripts\Editor\Character\ConvaiCharacterImporter.cs(179,45): error CS0117: ‘DirectoryUtility’ does not contain a definition for ‘GetRelativeProjectPath’
I’ve modified the code in “ConvaiCharacterImporter.cs” and removed the broken code to bypass the issue for now, as I do not need the code that was broken.
Not really sure why this error was appearing for me…
I’m now having a separate issue - Assets\Convai\Scripts\Runtime\Core\PlayerInteractionManager.cs(14,17): error CS0246: The type or namespace name ‘ConvaiInputManager’ could not be found (are you missing a using directive or an assembly reference?)
The error you’re encountering is not typical and often arises due to issues between the Code Compiler and Unity. This indicates that the problem is likely on your side. A similar issue occurred in your previous error as well.
Start a Fresh Project:
Create a new Unity project without importing any additional SDKs initially.
Check IDE Configuration:
Ensure your IDE (e.g., Visual Studio, Rider) is properly configured for Unity development.
Try on a Different Device:
If the problem persists, test on a different device to rule out hardware or environment-specific issues.
I just opened my project today and a message appeared in the unity Editor suggesting an Realilusion update… after installing it, I got the message Assets\Convai\Scripts\Editor\Character\ConvaiCharacterImporter.cs(179,45): error CS0117: ‘DirectoryUtility’ does not contain a definition for ‘GetRelativeProjectPath’
It’s now clear that the problem isn’t specific to the WebSDK or Core SDK. A few hours ago, Ready Player Me released a major update that caused changes affecting the character import script. As a result, we need to release an update to address this.
Temporary Fix:
To solve the problem temporarily, replace the line that shows the error with this code.
Assets\Convai\Scripts\Editor\Setup\CharacterImporter\CharacterImporterLogic.cs(121,31): error CS0103: The name ‘Path’ does not exist in the current context