public RESULT setParameterValue(string name, float value) { return FMOD_Studio_EventInstance_SetParameterValue(rawPtr, Encoding.UTF8.GetBytes(name + Char.MinValue), value); } public RESULT getParameterValueByIndex(int index, out float value)
// Use this for initialization void Start () { theSound = FMODUnity.RuntimeManager.CreateInstance(soundEvent); // a bunch of default vaiables which trick fmod into looping theSound.setParameterValue("Distance", 0.0f); theSound.setParameterValue("Direction", 0.0f); }