Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building error! am I something wrong?
#1
Hi,

in the editor everything works,  but if I try to build the example scece I have  these errors

Assets / Plugins / Curvy / Controllers / CurvyController.cs (1100.17): error CS0103: The name 'EditorApplication' does not exist in the current context

Build completed with a result of 'Failed'
UnityEditor.EditorApplication: Internal_CallGlobalEventHandler ()

.... how can I export the ?


Thanks
Reply
#2
Hi,

Sorry for this regression. I'll take a deeper look at this tomorrow at work, but from a first look, you can fix this by surrounding the editorUpdate method with a #if UNITY_EDITOR block


Code:
#if UNITY_EDITOR
       private void editorUpdate()
       {
         ...
       }
#endif

I will write here again to confirm this solution

Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
I confirm the solution. I added it to the known issues https://forum.curvyeditor.com/thread-514-post-2295.html#pid2295
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  playmaker integration error DNeville 5 8 Yesterday, 07:01 AM
Last Post: _Aka_
  Error when trying to connect nodes in prefab edit mode Lupos 4 9 06-02-2023, 10:27 AM
Last Post: _Aka_
  building game changes UV spaces for generated mesh scr33ner 9 15 01-18-2023, 09:16 AM
Last Post: _Aka_
  Error when switching splines ricke 3 7 10-10-2022, 08:46 AM
Last Post: _Aka_

Forum Jump: