How to get the Parameters in the event

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:

  1. Access EditorUtils.System, which will return an FMOD Studio system object
  2. CallEditorUtils.LoadPreviewBanksto ensure that banks are loaded
  3. Use Studio.System.getEvent()or Studio.System.getEventByID() to retrieve your event’s EventDescription
  4. Use Studio.EventDescription.getParameterDescriptionCount()and Studio.EventDescription.getParameterDescriptionByIndex() to enumerate the event’s parameter descriptions
  5. 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.Systemif that would be more convenient for you.