示例#1
0
 public FMOD.Studio.EventDescription GetEventDescription(string eventPath)
 {
     FMOD.Studio.EventDescription ev;
     Utilities.checkResult(_system.getEvent(eventPath, out ev));
     return(ev);
 }
示例#2
0
 /// <summary>
 /// Raises the specified event.
 /// </summary>
 /// <param name="eventPath">The path to the event in a bank file. Ex: event:/Footsteps</param>
 public static void RaiseEvent(string eventPath)
 {
     _System.getEvent(eventPath, out EventDescription _event);
     _event.createInstance(out EventInstance instance);
     instance.start();
 }
 /// <summary>
 /// Retrieves an event via internal path, i.e. "event:/UI/Cancel", or ID string, i.e. "{2a3e48e6-94fc-4363-9468-33d2dd4d7b00}".
 /// </summary>
 public static EventDescription GetEvent(string path)
 {
     Native.getEvent(path, out FMOD.Studio.EventDescription eventDescription);
     return(new EventDescription(eventDescription));
 }