private void Awake() { currentAsset = (FMODAsset)target; FMODEditorExtension.StopEvent(); // Seting up parameters FMOD.Studio.EventDescription eventDescription = FMODEditorExtension.GetEventDescription(currentAsset.id); if (eventDescription == null) { return; } int count; eventDescription.GetParameterCount(out count); // Fetch parameters parameters.Clear(); for (int i = 0; i < count; ++i) { Param parameter = new Param(); eventDescription.GetParameterByIndex(i, out parameter.description); parameter.value = parameter.description.minimum; } }