[HOWTO] How To: Fix Code Editor Not Recognizing Dialogue System Namespace
Posted: Wed Feb 24, 2021 9:07 am
This article describes how to resolve issues where your own code can't access Dialogue System scripts.
If your own code uses assembly definition files and you want it to recognize the Dialogue System namespace, import this unitypackage:
Plugins / Pixel Crushers / Dialogue System / Scripts / DialogueSystemAssemblyDefinitions.unitypackage
This will import 5 assembly definition files:
---
If that doesn't completely fix the issue, or if you're not using assembly definitions, then the issue is probably with Unity's integration package with your code editor (e.g., Visual Studio).
First try rebuilding the project files. Select menu item Edit > Preferences. On the External Tools page, click Regenerate project files.
If that doesn't fix it, open the Package Manager window to the Unity Registry page and update or downgrade the integration package for your code editor. For example, if you're using VS Code, update the 'Visual Studio Code Editor' package.
If your own code uses assembly definition files and you want it to recognize the Dialogue System namespace, import this unitypackage:
Plugins / Pixel Crushers / Dialogue System / Scripts / DialogueSystemAssemblyDefinitions.unitypackage
This will import 5 assembly definition files:
- Plugins / Pixel Crushers / Common / PixelCrushers.asmdef
- Plugins / Pixel Crushers / Common / Scripts / Editor / PixelCrushersEditor.asmdef
- Plugins / Pixel Crushers / Common / Wrappers / Editor / PixelCrushers.asmdef
- Plugins / Pixel Crushers / Dialogue System / DialogueSystem.asmdef
- Plugins / Pixel Crushers / Dialogue System / DialogueSystemEditor.asmdef
---
If that doesn't completely fix the issue, or if you're not using assembly definitions, then the issue is probably with Unity's integration package with your code editor (e.g., Visual Studio).
First try rebuilding the project files. Select menu item Edit > Preferences. On the External Tools page, click Regenerate project files.
If that doesn't fix it, open the Package Manager window to the Unity Registry page and update or downgrade the integration package for your code editor. For example, if you're using VS Code, update the 'Visual Studio Code Editor' package.