Reply To: detect if NC is installed

Forums 💬 NodeCanvas ⚙️ Support detect if NC is installed Reply To: detect if NC is installed

#17214
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