enzienaudio / hvcc

The heavy hvcc compiler for Pure Data patches.
GNU General Public License v3.0
361 stars 52 forks source link

Get the unity source But Unity fails with NullException on Play #2

Closed CarloCattano closed 6 years ago

CarloCattano commented 6 years ago

DllNotFoundException: Hv_mySynth2_AudioLib

Hv_mySynth2_Context..ctor (Double sampleRate, Int32 poolKb, Int32 inQueueKb, Int32 outQueueKb) (at Assets/unity/unity/source/unity/Hv_mySynth2_AudioLib.cs:323) Hv_mySynth2_AudioLib.Awake () (at Assets/unity/unity/source/unity/Hv_mySynth2_AudioLib.cs:203)

compiled using this line :

c:\Python27\python.exe hvcc.py main.pd -n mySynth2 -g unity

and importing the unity source files inside the file inspector.

At run keeps giving - did not found exception , and if activated on the inspector :

NullReferenceException: Object reference not set to an instance of an object Hv_mySynth2_AudioLib.Update () (at Assets/unity/unity/source/unity/Hv_mySynth2_AudioLib.cs:213)

CarloCattano commented 6 years ago

My bad , issue solved . Tried to use the files under \test222\unity\source\unity But understood that I had to compile them from VS studio opening this file and building .\test222\unity\vs2015\Hv_mySynth3_Unity.sln Which compiled the required files as the web Heavy compiler used too . test222\unity\build\win\x64\debug