Рет қаралды 3,168
NOTE: IF YOU'RE USING FMOD V2.02.07 OR HIGHER, YOU DON'T NEED TO CHANGE ANYTHING IN THE RUNTIME MANAGER SCRIPT
Hello all! Just a quick video on how to edit your Unity project so that you can use FMOD's 'FMODUnity.RuntimeManager.PlayOneShotAttached();' function with the 'EventReference' system.
Here is the new function that you'll need to copy and paste into your RuntimeManager script:
public static void PlayOneShotAttached(EventReference eventReference, GameObject gameObject)
{
try
{
PlayOneShotAttached(eventReference.Guid, gameObject);
}
catch (EventNotFoundException)
{
RuntimeUtils.DebugLogWarning("[FMOD] Event not found: " + eventReference.ToString());
}
}
Sign Up To The Newsletter For A Free FMOD + Unity Lesson!: scottgamesounds.us7.list-mana...
Check Out Other Series Such As:
Adding Game Sounds | FMOD & Unity: • Adding Game Sounds Fro...
Sound Design Tutorials: • Sound Design Tutorials
Dynamic Footstep System | Different Sounds On Different Surfaces - Unreal Engine 4 Tutorial: • Dynamic Footstep Syste...
Please let me know if you enjoyed. :D
Feel free to email me at henry@scottgamesounds.com. Or follow me on twitter @henryscott0.
My Music: / henry-scott-12. .
My Site: www.scottgamesounds.com