This is my byte array on Unity side.
byte[] array1 = new byte[(int)size1];
I want to send it to .jslib
like this:
[DllImport("__Internal")]private static extern void LoadJavaScriptFile(byte[] array,int size);
but I don't know how to handle this byte array using JavaScript. After:
const buffer = new ArrayBuffer(arraySize);const newByteArray = new Uint8Array(buffer);
what should I do?