Added _JS_Sound_GetPosition() dummy to unity-audio.js to fix missing function error starting from Unity 2022.3.57f1 and later

Fixed https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/issues/961

Same error occurred on Unity 6000 as well.
This commit is contained in:
H. H. 2025-07-02 21:25:47 -04:00 committed by GitHub
parent 207766f6db
commit d8d70a93de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1265,4 +1265,7 @@ export default {
}
return WEBAudio.audioContext.sampleRate;
},
_JS_Sound_GetPosition() {
return 0;
},
};