Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compilation issues for iOS with a scene containing generators
#1
Hi

I have a scene containing mesh generators and for some reason when compiling on iOS it seems to be failing because it is looking for editor classes, as per the errors below. 

When I remove the curvy generator / tracks it compiles without the issues below.

Any ideas/suggestions much appreciated Smile


thanks 

Nalin




-----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Plugins.dll
Microsoft ® Visual C# Compiler version 3.5.0-dev-20359-01 (8da8ba0c)
Copyright © Microsoft Corporation. All rights reserved.

Assets/Plugins/Curvy/Base/Editor/CG Modules/BuildVolumeSpotsEditor.cs(17,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/InputGameObjectEditor.cs(14,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/InputMeshEditor.cs(14,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/InputSpotsEditor.cs(13,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG/CGGraph.cs(17,19): error CS0234: The type or namespace name 'AnimatedValues' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG/CGModuleEditor.cs(17,19): error CS0234: The type or namespace name 'AnimatedValues' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/Components/GLCurvyRendererEditor.cs(14,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CurvySplineSegmentEditor.cs(19,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/DevTools/Editor/DTEditor.cs(14,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/DevTools/Editor/DTEditor.cs(15,19): error CS0234: The type or namespace name 'AnimatedValues' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Assets/Plugins/DevTools/Editor/DTEditorClasses.cs(15,19): error CS0234: The type or namespace name 'AnimatedValues' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Assets/Plugins/DevTools/Editor/DTEditorClasses.cs(16,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/DevTools/Editor/EditorData.cs(10,19): error CS0234: The type or namespace name 'AnimatedValues' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/AboutWindow.cs(18,32): error CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/DevTools/Editor/DTEditor.cs(21,32): error CS0246: The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/DevTools/Editor/Components/ComponentPoolEditor.cs(14,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/DevTools/Editor/Components/ComponentPoolEditor.cs(14,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/BuildRasterizedPathEditor.cs(16,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/BuildRasterizedPathEditor.cs(16,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/Components/GLCurvyRendererEditor.cs(19,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/Components/GLCurvyRendererEditor.cs(19,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/BuildShapeExtrusionEditor.cs(17,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/BuildShapeExtrusionEditor.cs(17,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/Controllers/CurvyControllerEditor.cs(51,37): error CS0246: The type or namespace name 'PlayModeStateChange' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/Controllers/MoveModeDrawer.cs(15,35): error CS0246: The type or namespace name 'PropertyDrawer' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/BuildVolumeCapsEditor.cs(17,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/CG Modules/BuildVolumeCapsEditor.cs(17,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/Curvy/Base/Editor/Controllers/MoveModeDrawer.cs(14,6): error CS0246: The type or namespace name 'CustomPropertyDrawerAttribute' could not be found (are you missing a using directive or an assembly reference?)
Reply
#2
Ok, not sure what caused the issue but I have found a workaround.

Essentially my project was using assembly definitions, and I had not set up Curvy's assembly definitions. After I did set these up, I added the dependencies specifically so that none of the curvy editor classes would be included in the project build, and the errors magically went away.

Hope this helps someone else Smile
Reply
#3
This is weird. Editor scripts are normally automatically stripped from the build by Unity. Are you using asmdefs? If so, removing them solves the issue? If not, do you have other editor scripts (in any folder named Editor) in your project? Try making an editor script that references the namespace UnityEditorInternal and see if it builds or not.
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
  How can I modify generators during gameplay ? codehawk64 2 143 09-03-2021, 10:18 AM
Last Post: codehawk64
  Spot Generator resetting some values after Script compilation Mos Def 11 1,882 05-25-2021, 02:41 PM
Last Post: _Aka_
  Activate Curvy Generator After Scene Load jdkirk1 7 1,376 05-07-2021, 02:14 PM
Last Post: _Aka_
  save spot generated gameobject to scene fortune53 1 452 03-18-2021, 06:25 PM
Last Post: _Aka_

Forum Jump: