HoudiniEngineForUnity
HoudiniEngineForUnity copied to clipboard
Add conditional compilation for VisualScripting support.
HEU support for Unity visual scripting assumes visual scripting support is always available in Unity versions >= 2021.1, however this is not the case. Although it is added by default to new projects it's also the first thing to be removed to avoid bloat in projects that don't actually need or want to use visual scripting. It will also not be present in projects upgraded from previous Unity versions unless explicitly added.
This change makes compilation of the visual scripting assemblies conditional on the presence of the visual scripting package in the project.