From 56f7eb0408ba68d3d87691f8adcc8e805edaefde Mon Sep 17 00:00:00 2001 From: Nadine Ganz Date: Tue, 7 Jan 2025 17:32:47 +0100 Subject: [PATCH] Add ChangeEvent() in FMOD Studio Event Emitter --- Viagg-io/Assets/Plugins/FMOD/src/StudioEventEmitter.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Viagg-io/Assets/Plugins/FMOD/src/StudioEventEmitter.cs b/Viagg-io/Assets/Plugins/FMOD/src/StudioEventEmitter.cs index e709389..36db7bc 100644 --- a/Viagg-io/Assets/Plugins/FMOD/src/StudioEventEmitter.cs +++ b/Viagg-io/Assets/Plugins/FMOD/src/StudioEventEmitter.cs @@ -405,5 +405,12 @@ namespace FMODUnity } return false; } + + public void ChangeEvent(EventReference eventRef) + { + Stop(); + EventReference = eventRef; + Lookup(); + } } }