Page 1 of 1

Dialogue System Compiler Errors

Posted: Tue May 25, 2021 11:57 am
by cairnryan
Hi Tony,

Project working fine, then the below compiler errors cropped up and now my scripts aren't loading. I've reimported the PixelCrushers package but no change there. I'm not sure what triggered the errors. Thanks for any help.

Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs(9,19): error CS0234: The type or namespace name 'AddressableAssets' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs(10,19): error CS0234: The type or namespace name 'ResourceManagement' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Options/Timeline/Playables/Utility/PreviewUI.cs(12,19): error CS0234: The type or namespace name 'AddressableAssets' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Options/Timeline/Playables/Utility/PreviewUI.cs(13,19): error CS0234: The type or namespace name 'AddressableAssets' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Options/Timeline/Playables/Utility/PreviewUI.cs(13,19): error CS0234: The type or namespace name 'AddressableAssets' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs(2113,36): error CS0246: The type or namespace name 'AsyncOperationHandle<>' could not be found (are you missing a using directive or an assembly reference?)


Using 2019.4.19 and Dialogue System 2.2.15.

Re: Dialogue System Compiler Errors

Posted: Tue May 25, 2021 1:46 pm
by Tony Li
Hi,

The Welcome Window's USE_ADDRESSABLES checkbox has gotten accidentally ticked.

If you intend to use Addressables, import the Addressables package using the Package Manager window.

If you don't intend to use Addressables, then if you still have access to the Dialogue System's Welcome Window UNtick USE_ADDRESSABLES. If you don't have access to the Welcome Window, select menu item Edit > Project Settings. Navigate to Player > Other Settings > Scripting Define Symbols. Remove USE_ADDRESSABLES.

Re: Dialogue System Compiler Errors

Posted: Tue May 25, 2021 5:16 pm
by cairnryan
Thanks Tony, I wouldn't have figured that out on my own! Instant fix following your instructions. All the best and have a great night :)

Re: Dialogue System Compiler Errors

Posted: Tue May 25, 2021 6:50 pm
by Tony Li
Glad to help!