Seneral / Node_Editor_Framework

A flexible and modular Node Editor Framework for creating node based displays and editors in Unity
https://nodeeditor.seneral.dev
MIT License
2.01k stars 414 forks source link

Android Build #15

Closed omid3098 closed 8 years ago

omid3098 commented 8 years ago

When I try to build for android, these two error happens:

Assets/Plugins/Node_Editor/Framework/NodeEditor.cs(891,54): error CS0234: The type or namespace nameLoadAll' does not exist in the namespace NodeEditorFramework.Resources'. Are you missing an assembly reference?

Assets/Plugins/Node_Editor/Framework/NodeEditor.cs(946,29): error CS0165: Use of unassigned local variableobjects'`

also tried with blank project and the same error happens.

Seneral commented 8 years ago

Hi, I fixed that in this commit 1d7323c082704b86e15e904fb73bcb8a000e081e . Seems as if the compiler of the editor recognises if I assign a variable in an else block (so all variables where definitely assigned), while the build compiler doesn't... And I didn't noticed the first error as it was inside an editor precompiler block which broke after I added a sub-namespace called Resources ....

Hope it works for you now, be sure to tell if it works on android:) I suppose you're using a tablet, for smartphone the screen would be just too small... I already tested it successfully on a windows tablet, touch controls do work pretty well;)