Answered
0
0

Is it possible to use the Unity Reverb spheres with FMOD Studio? I really liked the idea of being able to hand place the reverbs instead of just guessing and having to go and rebuild the bank everytime.

  • You must to post comments
Best Answer
0
1

It’s not possible to use the Unity reverb spheres.

I don’t know what your current workflow is there is a way that let you set spheres in Unity to trigger snapshots.

Create a Game Object with a Sphere Collidier and set Is Trigger to true.

Then add a custom script along the lines of:

public class ReverbZone : MonoBehaviour
{
    FMOD.Studio.EventInstance ReverbSnaphsot;

    void Start()
    {
        var system = FMOD_StudioSystem.instance.System;
        FMOD.Studio.EventDescription description;
        system.getEvent("snapshot:/path/to/reverb/snapshot", out description);
        description.createInstance(out ReverbSnaphsot);
    }

    void OnDestroy()
    {
        ReverbSnaphsot.stop(FMOD.Studio.STOP_MODE.IMMEDIATE);
        ReverbSnaphsot.release();
    }

    void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            ReverbSnaphsot.start();
        }
    }

    void OnTriggerExit(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            ReverbSnaphsot.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
        }
    }
}
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.