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...ml#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
  'Ambiguous reference' error TenaciousLibbs 3 1,012 01-16-2019, 10:22 AM
Last Post: _Aka_
  strange error pez111 5 2,200 12-23-2018, 04:34 PM
Last Post: _Aka_
  Wrong movement between splines Sergei543071 3 1,186 07-30-2018, 12:17 AM
Last Post: _Aka_
  2018.1 is giving me the following error mythstified 4 2,208 05-08-2018, 03:32 PM
Last Post: _Aka_

Forum Jump: