Build fails with errors (inc. picture). Unity 5.6

NodeCanvas Forums Support Build fails with errors (inc. picture). Unity 5.6

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12075
    thestephenson
    Participant

    Hi,

    We are currently using NC but we are experiencing some problems.

    When I first load a scene, I can ‘play’ it without problems. But when I build (any platform) I get the below errors and I can no longer even play the scene. Restarting Unity solves this until I try building again.

    My partner does not have this problem even though we both use the same repository (git/sourcetree). We are both using Macs, with Unity 5.6 latest.

    Thanks for any help.

    Mark

    Attachments:
    You must be logged in to view attached files.
    #12079
    elendow
    Participant

    Hi,

    I can answer your question. Those namespaces you are using are not included on a build because are Editor only. Every reference to that namespaces must be inside a #if UNITY_EDITOR condition in order to exclude them when building.

    Hope this helps!

    Cheers.

    #12081
    thestephenson
    Participant

    Hi, Thanks for the reply.

    I still don’t quite understand. My friend and I have identical folders yet his builds with no errors. How can this be?

    Thanks

    #12082
    elendow
    Participant

    I don’t understand that either.

    When you build the game everything editor-related gets cutted, so if you have any reference to it in your code, it will crash. Except if this code is in an “Editor” folder, in that case, all this code it’s ignored. So, if your friend and you really have identical folders and he can build… well, he did some trick or magic that I don’t know 🙁

    Cheers.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.