public override void OnInspectorGUI() { pureData.InitializeSettings(); generalSettings = pureData.generalSettings; generalSettingsSerialized = new SerializedObject(generalSettings); busManager = pureData.busManager; busManagerSerialized = new SerializedObject(busManager); spatializerManager = pureData.spatializerManager; spatializerManagerSerialized = new SerializedObject(spatializerManager); containerManager = pureData.containerManager; containerManagerSerialized = new SerializedObject(containerManager); Begin(); ShowGeneralSettings(); Separator(); ShowBuses(); ShowSpatializers(); ShowContainers(); Separator(); End(); generalSettingsSerialized.ApplyModifiedProperties(); busManagerSerialized.ApplyModifiedProperties(); spatializerManagerSerialized.ApplyModifiedProperties(); containerManagerSerialized.ApplyModifiedProperties(); }
public static PureDataGeneralSettings Create(string path) { PureDataGeneralSettings generalSettings = HelperFunctions.GetOrAddAssetOfType <PureDataGeneralSettings>("General", path); generalSettings.SetDefaultValues(); return(generalSettings); }
public static void Switch(PureDataGeneralSettings source, PureDataGeneralSettings target) { source.MasterVolume = target.MasterVolume; source.MaxVoices = target.MaxVoices; source.patchesPath = target.patchesPath; source.speedOfSound = target.speedOfSound; source.Initialize(source.pureData); }