Trigger snapshot in Unity C#


(Nicholas Wilcox) #1

In Unity it would look like

FMOD.Studio.EventInstance snapshot;
void Start () {
    FMOD.Studio.EventDescription desc;
    // TODO: include error checking
    FMOD_StudioSystem.instance.System.getEvent("snapshot:/IngamePause", out desc);
    desc.createInstance(out snapshot);       
}

(Alberto Carlassare) #2

Hi, I’m interested also in how to trigger with C# code a snapshot. I tried to threat it as an event:

private FMOD.Studio.EventInstance MySnapshot;

MySnapshot = FMOD_StudioSystem.GetEvent(“SnapshotPatch”);

but I get error. I don’t really understand why working with EventDescription

If you could help I would appreciate