Hi, I want to get all the Parameter in a Fmod Sound. But I got :
[FMOD] RuntimeManager accessed outside of runtime. Do not use RuntimeManager for Editor-only functionality; create your own System objects instead.
Is there any way to do that in EDITOR?
Thanks you
Hi,
The simplest way to get all parameters associated with an event in the editor context is to:
- Access
EditorUtils.System
, which will return an FMOD Studio system object - Call
EditorUtils.LoadPreviewBanks
to ensure that banks are loaded - Use
Studio.System.getEvent()
orStudio.System.getEventByID()
to retrieve your event’sEventDescription
- Use
Studio.EventDescription.getParameterDescriptionCount()
andStudio.EventDescription.getParameterDescriptionByIndex()
to enumerate the event’s parameter descriptions - Retrieve the parameter info from the descriptions
You can also do something similar by creating and initializing your own FMOD Studio system instead of using EditorUtils.System
if that would be more convenient for you.