Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public static PureDataGeneralSettings Create(string path)
        {
            PureDataGeneralSettings generalSettings = HelperFunctions.GetOrAddAssetOfType <PureDataGeneralSettings>("General", path);

            generalSettings.SetDefaultValues();
            return(generalSettings);
        }
Exemplo n.º 3
0
        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);
        }