Build Error in DialogueModificationProcessor

I got this build error when i built my game.
Assets\Scripts\Dialogue\DialogueModificationProcessor.cs(9,62): error CS0234: The type or namespace name ‘AssetModificationProcessor’ does not exist in the namespace ‘UnityEditor’ (are you missing an assembly reference?)
and
Assets\Scripts\Dialogue\DialogueModificationProcessor.cs(11,16): error CS0246: The type or namespace name ‘AssetMoveResult’ could not be found (are you missing a using directive or an assembly reference?)


It refers to this script :

Like the DialogueEditor, the DialogueModificationProcessor must be in a folder named Editor (so in the same folder as DialogueEditor).

When a game is built into an executable, no code in the UnityEditor namespace can exist within the code. The Editor has a mechanism for this, requiring that all UnityEditor code either be in a folder named Editor, or have #if UNITY_EDITOR/#endif surrounding the relevant code.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms