I am having trouble playing a 3D event in FMOD using the built in C# wrapper. The event I’m using plays normally but has no panning. I have verified that is not FMOD not panning the audio (as adding the Spatializer in studio and adjusting manually works properly), but when I retrieve the 3D_ATTRIBUTE from the instance using get3DAttributes, getting the position’s x property I set returns as 0, even though I set it to 20. I believe this could be the root of the problem.
//On the game's update tick:
ATTRIBUTES_3D at = new ATTRIBUTES_3D
{
position = new VECTOR { x = 20f, y = 4f, z = 0f }
};
inst.set3DAttributes(at);
inst.get3DAttributes(out var deb);
//deb.position.x returns as 0.
//Update both systems:
StudioSystem.update();
FMODSystem.update();