Build issue with NodeCanvas

NodeCanvas Forums Support Build issue with NodeCanvas

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11210
    delament
    Participant

    Hey there,
    I was trying to get a project to build with Node Canvas (the project at the time didn’t use any of the code, but the node canvas library was in the project) and it was having an issue with Commands.cs referencing TaskWizardWindow. This was because TaskWizardWindow is set to comment out itself if the project isn’t in the editor, Commands.cs however still references the class which in a production build, doesn’t exist, which causes a crash.

    I fixed it by adding the same #if UNITY_EDITOR && !UNITY_WEBPLAYER to line 20 of Commands.cs (and the following #endif)

    Just thought I should mention it!
    Loving the extension, keep up the amaaazzzinngggg work!

    #11213
    Gavalakis
    Keymaster

    Hey,

    Thanks a lot for the report. Commands.cs is placed under an “Editor” named folder though. I am wondering why the compiler complaint. In any case though, I will add the whole Commands class in a UNITY_EDITOR define in the next version as well, so to make sure it’s excluded regardless of the folder it lies within 😉
    I am very glad you like NodeCanvas and for your positive feedback! Thank you!!

    Join us on Discord: https://discord.gg/97q2Rjh

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