detect if NC is installed

NodeCanvas Forums Support detect if NC is installed

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13433
    derdicke
    Participant

    Hi guys,

    I’m writing an AI toolset for Unity Asset Store and want to support NC.
    My problem is to detect if NC is installed on Users computer, so i can enable/disable compilation of scripts using NC.
    Something like #if NodeCanvas, just like e.g Playmaker does it.

    Thanks!

    #13434
    derdicke
    Participant

    Anyone?
    Is there any way to detect NC installation?

    #13439
    Gavalakis
    Keymaster

    Hello,

    First of all, thank you for wanting to support NC in your asset!

    If you mean “Script Define Symbols”, then by default NC does not add any defines there.

    I can however if desired automatically add a define like “NODECANVAS” there, once NC initialize in the editor.

    Let me know and thanks again for supporting NC! 🙂

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

    #13443
    derdicke
    Participant

    <quote>
    First of all, thank you for wanting to support NC in your asset!
    </quote>
    My pleasure.

    <quote>
    If you mean “Script Define Symbols”, then by default NC does not add any defines there.

    I can however if desired automatically add a define like “NODECANVAS” there, once NC initialize in the editor.
    </quote>

    yupp, this is exactly what i mean. PlayMaker adds various defines to Build Settings, what makes it possible to write code like that:

    #if PLAYMAKER
    // PlayMaker support here
    #else
    // No PlayMaker installed
    #endif

    But don’t do it just for me… I’ll fallback to let user download a unitypackage if they want NC support.
    Maybe would be helpful in the future for other supporters

    #13447
    Gavalakis
    Keymaster

    Hello again,

    I think it would be a good thing to have anyways, so I think I will just go ahead and apply such a scripting define symbol automatically in the next version 🙂

    Thanks again and if you have any questions or need any help with the integration, please feel free to let me know!

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

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