Compiler error when importing NodeCanvas

NodeCanvas Forums Support Compiler error when importing NodeCanvas

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16632
    costas
    Participant

    Hi there, I recently imported the NodeCanvas package in my project (Unity version: 2020.3.23f) and when it finishes importing, I get a compiler error about the ‘PrefabStage’ in Unity.SceneManagement not existing (attached two screenshots of the error).

    Can someone help me understand why that error is happening? The package had been installed on another project and there were no errors there.

     

    Attachments:
    You must be logged in to view attached files.
    #16635
    Gavalakis
    Keymaster

    Hello there,

    This is weird because the code there is actually different normally. Please change the code in like #173-174 to be like this:

    (Basically using the correct namespace UnityEditor.Experimental.SceneManagement.

    Please also do the same namespace change in line #199 and #235.

    Let me know if that works for you.

    Thanks.

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

    #16636
    costas
    Participant

    Ah thank you! I had done some research and found out about the Experimental namespace correction for older versions of Unity and added it in and it looks good. Thanks for the quick response and help!

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