ClientSim icon indicating copy to clipboard operation
ClientSim copied to clipboard

ONSPAudioSource, are you missing a using directive or an assembly reference?)

Open ItzDragonFace opened this issue 2 years ago • 3 comments

Assets\com.vrchat.ClientSim\Runtime\Helpers\ClientSimSpatialAudioHelper.cs(8,48): error CS0246: The type or namespace name 'ONSPAudioSource' could not be found (are you missing a using directive or an assembly reference?)

Assets\com.vrchat.ClientSim\Runtime\Helpers\ClientSimSpatialAudioHelper.cs(15,17): error CS0246: The type or namespace name 'ONSPAudioSource' could not be found (are you missing a using directive or an assembly reference?)

ItzDragonFace avatar Apr 21 '22 00:04 ItzDragonFace

I'm also getting this error. Is there any solution?

Toxic-Cookie avatar May 14 '22 00:05 Toxic-Cookie

Are you using the GIT repo version of the SDK or the downloaded one? I had this same error when using the downloaded SDK rather than the GIT one.

Enverex avatar May 29 '22 16:05 Enverex

Are you using the GIT repo version of the SDK or the downloaded one? I had this same error when using the downloaded SDK rather than the GIT one.

I had to do some funky stuff to get it to work. I used the downloaded VRC SDK and I had to put a magic string into the package manager to get the emulator which you can find here: https://github.com/vrchat-community/ClientSim/issues/25#issuecomment-1127992893. After that the only error I had was this one and so what I did was copy the code from ONSPAudioSource.cs file and appended it under the ClientSimSpatialAudioHelper.cs file. It was really weird and hacky but I finally got it to run.

Toxic-Cookie avatar Jun 01 '22 20:06 Toxic-Cookie

This appears to be a duplicate of #6, which should no longer be an issue - let me know if it's still happening for you @ItzDragonFace @Toxic-Cookie!

momo-the-monster avatar Jan 11 '23 16:01 momo-the-monster