Build Errors from Editor scripts

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nrvllrgrs
Posts: 20
Joined: Wed Nov 11, 2015 4:55 pm

Build Errors from Editor scripts

Post by nrvllrgrs »

Using Unity 2020.1.2 and Dialogue System 2.2.11:

I'm getting 100+ build errors, all related to Dialogue System editor scripts. Such errors include:

Code: Select all

Assets\Plugins\Pixel Crushers\Common\Scripts\Editor\Save System\DiskSavedGameDataStorerEditor.cs(5,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)

Code: Select all

Assets\Plugins\Pixel Crushers\Common\Scripts\Editor\Save System\SaveSystemEditorUtility.cs(5,19): error CS0234: The type or namespace name 'SceneManagement' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

Code: Select all

Assets\Plugins\Pixel Crushers\Common\Scripts\Editor\Message System\MessageEventsEditor.cs(10,40): error CS0246: The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?)

Code: Select all

Assets\Plugins\Pixel Crushers\Common\Scripts\Editor\Misc\HelpBoxAttributeDrawer.cs(24,30): error CS0115: 'HelpBoxAttributeDrawer.OnGUI(Rect)': no suitable method found to override
Any ideas as to why these errors are happening? Should the scripts in the Editor directories be included in separate Assembly Definitions?
User avatar
Tony Li
Posts: 21080
Joined: Thu Jul 18, 2013 1:27 pm

Re: Build Errors from Editor scripts

Post by Tony Li »

Hi,

Yes, if you're using unitypackages, Editor folders need their own separate assembly definition files (asmdefs).

The Dialogue System provides unitypackages containing premade asmdefs. One is in Common/Scripts. The other is in Dialogue System/Scripts. Did you import these unitypackages or make your own? If you made your own, please make one for any Editor folders. Mark them as editor only.
nrvllrgrs
Posts: 20
Joined: Wed Nov 11, 2015 4:55 pm

Re: Build Errors from Editor scripts

Post by nrvllrgrs »

Well then. Now I just feel dumb. Thanks for the help.
User avatar
Tony Li
Posts: 21080
Joined: Thu Jul 18, 2013 1:27 pm

Re: Build Errors from Editor scripts

Post by Tony Li »

No worries! Glad to help.
Post Reply