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.
<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
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
Author
Posts
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.