Ejemplo 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();
        }
Ejemplo n.º 2
0
		public override void OnInspectorGUI() {
			pureData.InitializeSettings();
			pureData.hierarchyManager.FreezeTransforms();
			
			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);
			sequenceManager = pureData.sequenceManager;
			sequenceManagerSerialized = new SerializedObject(sequenceManager);
				
			Begin();
			
			ShowGeneralSettings();
			Separator();
			ShowBuses();
			ShowSpatializers();
			ShowContainers();
			ShowSequences();
			Separator();
			
			End();
			
			generalSettingsSerialized.ApplyModifiedProperties();
			busManagerSerialized.ApplyModifiedProperties();
			spatializerManagerSerialized.ApplyModifiedProperties();
			containerManagerSerialized.ApplyModifiedProperties();
			sequenceManagerSerialized.ApplyModifiedProperties();
		}
Ejemplo n.º 3
0
        public static void Switch(PureDataBusManager source, PureDataBusManager target)
        {
            source.mixerPath = target.mixerPath;
            source.buses     = target.buses;

            source.Initialize(source.pureData);
        }