protected void GUIAdvanceOptions(LipSync sync) { EditorGUILayout.Space(); isAdvancedOptionsFoldOut = EditorGUILayout.Foldout(isAdvancedOptionsFoldOut, "Advanced Options"); if (isAdvancedOptionsFoldOut) { EditorGUILayout.PropertyField(serializedObject.FindProperty("windowSize")); EditorGUILayout.PropertyField(serializedObject.FindProperty("amplitudeThreshold")); EditorGUILayout.PropertyField(serializedObject.FindProperty("mouthSwitchInterval")); } EditorGUILayout.Space(); if (Application.isPlaying) { EditorGUILayout.HelpBox("Changes of settings at runtime must be applied manually using the button below.", MessageType.Warning); if (GUILayout.Button("Apply runtime changes")) { sync.InitializeRecognizer(); } } }