public void OnEnable() { m_target = (GraphyManager)target; LoadGuiStyles(); SerializedObject serObj = serializedObject; m_keepAlive = serObj.FindProperty("m_keepAlive"); m_background = serObj.FindProperty("m_background"); m_backgroundColor = serObj.FindProperty("m_backgroundColor"); m_toggleModeKeyCode = serObj.FindProperty("m_toggleModeKeyCode"); m_toggleModeCtrl = serObj.FindProperty("m_toggleModeCtrl"); m_toggleModeAlt = serObj.FindProperty("m_toggleModeAlt"); m_toggleActiveKeyCode = serObj.FindProperty("m_toggleActiveKeyCode"); m_toggleActiveCtrl = serObj.FindProperty("m_toggleActiveCtrl"); m_toggleActiveAlt = serObj.FindProperty("m_toggleActiveAlt"); m_graphModulePosition = serObj.FindProperty("m_graphModulePosition"); // Fps --------------------------------------------------------------------------- m_fpsModuleState = serObj.FindProperty("m_fpsModuleState"); m_timeToResetMinMaxFps = serObj.FindProperty("m_timeToResetMinMaxFps"); m_goodFpsColor = serObj.FindProperty("m_goodFpsColor"); m_goodFpsThreshold = serObj.FindProperty("m_goodFpsThreshold"); m_cautionFpsColor = serObj.FindProperty("m_cautionFpsColor"); m_cautionFpsThreshold = serObj.FindProperty("m_cautionFpsThreshold"); m_criticalFpsColor = serObj.FindProperty("m_criticalFpsColor"); m_fpsGraphResolution = serObj.FindProperty("m_fpsGraphResolution"); m_fpsTextUpdateRate = serObj.FindProperty("m_fpsTextUpdateRate"); // Ram --------------------------------------------------------------------------- m_ramModuleState = serObj.FindProperty("m_ramModuleState"); m_allocatedRamColor = serObj.FindProperty("m_allocatedRamColor"); m_reservedRamColor = serObj.FindProperty("m_reservedRamColor"); m_monoRamColor = serObj.FindProperty("m_monoRamColor"); m_ramGraphResolution = serObj.FindProperty("m_ramGraphResolution"); m_ramTextUpdateRate = serObj.FindProperty("m_ramTextUpdateRate"); // Audio ------------------------------------------------------------------------- m_findAudioListenerInCameraIfNull = serObj.FindProperty("m_findAudioListenerInCameraIfNull"); m_audioListener = serObj.FindProperty("m_audioListener"); m_audioModuleState = serObj.FindProperty("m_audioModuleState"); m_audioGraphColor = serObj.FindProperty("m_audioGraphColor"); m_audioGraphResolution = serObj.FindProperty("m_audioGraphResolution"); m_audioTextUpdateRate = serObj.FindProperty("m_audioTextUpdateRate"); m_FFTWindow = serObj.FindProperty("m_FFTWindow"); m_spectrumSize = serObj.FindProperty("m_spectrumSize"); // Advanced ---------------------------------------------------------------------- m_advancedModulePosition = serObj.FindProperty("m_advancedModulePosition"); m_advancedModuleState = serObj.FindProperty("m_advancedModuleState"); }
private void OnEnable() { m_target = (GraphyManager)target; SerializedObject serObj = serializedObject; #region Section -> Settings m_graphyMode = serObj.FindProperty("m_graphyMode"); m_enableOnStartup = serObj.FindProperty("m_enableOnStartup"); m_keepAlive = serObj.FindProperty("m_keepAlive"); m_background = serObj.FindProperty("m_background"); m_backgroundColor = serObj.FindProperty("m_backgroundColor"); m_enableHotkeys = serObj.FindProperty("m_enableHotkeys"); m_toggleModeKeyCode = serObj.FindProperty("m_toggleModeKeyCode"); m_toggleModeCtrl = serObj.FindProperty("m_toggleModeCtrl"); m_toggleModeAlt = serObj.FindProperty("m_toggleModeAlt"); m_toggleActiveKeyCode = serObj.FindProperty("m_toggleActiveKeyCode"); m_toggleActiveCtrl = serObj.FindProperty("m_toggleActiveCtrl"); m_toggleActiveAlt = serObj.FindProperty("m_toggleActiveAlt"); m_graphModulePosition = serObj.FindProperty("m_graphModulePosition"); #endregion #region Section -> FPS m_fpsModuleState = serObj.FindProperty("m_fpsModuleState"); m_timeToResetMinMaxFps = serObj.FindProperty("m_timeToResetMinMaxFps"); m_goodFpsColor = serObj.FindProperty("m_goodFpsColor"); m_goodFpsThreshold = serObj.FindProperty("m_goodFpsThreshold"); m_cautionFpsColor = serObj.FindProperty("m_cautionFpsColor"); m_cautionFpsThreshold = serObj.FindProperty("m_cautionFpsThreshold"); m_criticalFpsColor = serObj.FindProperty("m_criticalFpsColor"); m_fpsGraphResolution = serObj.FindProperty("m_fpsGraphResolution"); m_fpsTextUpdateRate = serObj.FindProperty("m_fpsTextUpdateRate"); #endregion #region Section -> RAM m_ramModuleState = serObj.FindProperty("m_ramModuleState"); m_allocatedRamColor = serObj.FindProperty("m_allocatedRamColor"); m_reservedRamColor = serObj.FindProperty("m_reservedRamColor"); m_monoRamColor = serObj.FindProperty("m_monoRamColor"); m_ramGraphResolution = serObj.FindProperty("m_ramGraphResolution"); m_ramTextUpdateRate = serObj.FindProperty("m_ramTextUpdateRate"); #endregion #region Section -> Audio m_findAudioListenerInCameraIfNull = serObj.FindProperty("m_findAudioListenerInCameraIfNull"); m_audioListener = serObj.FindProperty("m_audioListener"); m_audioModuleState = serObj.FindProperty("m_audioModuleState"); m_audioGraphColor = serObj.FindProperty("m_audioGraphColor"); m_audioGraphResolution = serObj.FindProperty("m_audioGraphResolution"); m_audioTextUpdateRate = serObj.FindProperty("m_audioTextUpdateRate"); m_FFTWindow = serObj.FindProperty("m_FFTWindow"); m_spectrumSize = serObj.FindProperty("m_spectrumSize"); #endregion #region Section -> Advanced Settings m_advancedModulePosition = serObj.FindProperty("m_advancedModulePosition"); m_advancedModuleState = serObj.FindProperty("m_advancedModuleState"); #endregion }
private void OnEnable() { m_target = (GraphyManager)target; SerializedObject serObj = serializedObject; #region Section -> Settings m_graphyMode = serObj.FindProperty("m_graphyMode"); m_enableOnStartup = serObj.FindProperty("m_enableOnStartup"); m_keepAlive = serObj.FindProperty("m_keepAlive"); m_background = serObj.FindProperty("m_background"); m_backgroundColor = serObj.FindProperty("m_backgroundColor"); m_enableHotkeys = serObj.FindProperty("m_enableHotkeys"); m_toggleModeKeyCode = serObj.FindProperty("m_toggleModeKeyCode"); m_toggleModeCtrl = serObj.FindProperty("m_toggleModeCtrl"); m_toggleModeAlt = serObj.FindProperty("m_toggleModeAlt"); m_toggleActiveKeyCode = serObj.FindProperty("m_toggleActiveKeyCode"); m_toggleActiveCtrl = serObj.FindProperty("m_toggleActiveCtrl"); m_toggleActiveAlt = serObj.FindProperty("m_toggleActiveAlt"); m_graphModulePosition = serObj.FindProperty("m_graphModulePosition"); #endregion #region Section -> FPS m_fpsModuleState = serObj.FindProperty("m_fpsModuleState"); m_timeToResetMinMaxFps = serObj.FindProperty("m_timeToResetMinMaxFps"); m_goodFpsColor = serObj.FindProperty("m_goodFpsColor"); m_goodFpsThreshold = serObj.FindProperty("m_goodFpsThreshold"); m_cautionFpsColor = serObj.FindProperty("m_cautionFpsColor"); m_cautionFpsThreshold = serObj.FindProperty("m_cautionFpsThreshold"); m_criticalFpsColor = serObj.FindProperty("m_criticalFpsColor"); m_fpsGraphResolution = serObj.FindProperty("m_fpsGraphResolution"); m_fpsTextUpdateRate = serObj.FindProperty("m_fpsTextUpdateRate"); #endregion #region Section -> RTT m_rttModuleState = serObj.FindProperty("m_rttModuleState"); m_timeToResetMinMaxRtt = serObj.FindProperty("m_timeToResetMinMaxRtt"); m_goodRttColor = serObj.FindProperty("m_goodRttColor"); m_goodRttThreshold = serObj.FindProperty("m_goodRttThreshold"); m_cautionRttColor = serObj.FindProperty("m_cautionRttColor"); m_cautionRttThreshold = serObj.FindProperty("m_cautionRttThreshold"); m_criticalRttColor = serObj.FindProperty("m_criticalRttColor"); m_rttGraphResolution = serObj.FindProperty("m_rttGraphResolution"); m_rttTextUpdateRate = serObj.FindProperty("m_rttTextUpdateRate"); #endregion #region Section -> Advanced Settings m_advancedModulePosition = serObj.FindProperty("m_advancedModulePosition"); m_advancedModuleState = serObj.FindProperty("m_advancedModuleState"); #endregion }