You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticGUIContentoverrideSettingText{get;}=EditorGUIUtility.TrTextContent("","Override this setting for this volume.");
81
+
publicstaticGUIContentallText{get;}=EditorGUIUtility.TrTextContent("ALL","Toggle all overrides on. To maximize performances you should only toggle overrides that you actually need.");
82
+
publicstaticGUIContentnoneText{get;}=EditorGUIUtility.TrTextContent("NONE","Toggle all overrides off.");
if(GUILayout.Button(EditorGUIUtility.TrTextContent("All","Toggle all overrides on. To maximize performances you should only toggle overrides that you actually need."),CoreEditorStyles.miniLabelButton,GUILayout.Width(17f),GUILayout.ExpandWidth(false)))
289
-
SetAllOverridesTo(true);
325
+
AddToogleState(Styles.allText,true);
326
+
AddToogleState(Styles.noneText,false);
327
+
}
328
+
}
329
+
330
+
/// <summary>
331
+
/// Checks if all the visible parameters have the given state
332
+
/// </summary>
333
+
/// <param name="state">The state to check</param>
if(GUILayout.Button(EditorGUIUtility.TrTextContent("None","Toggle all overrides off."),CoreEditorStyles.miniLabelButton,GUILayout.Width(32f),GUILayout.ExpandWidth(false)))
292
-
SetAllOverridesTo(false);
347
+
/// <summary>
348
+
/// Sets the given state to all the visible parameters
349
+
/// </summary>
350
+
/// <param name="state">The state to check</param>
property.overrideState.boolValue=GUI.Toggle(overrideRect,property.overrideState.boolValue,EditorGUIUtility.TrTextContent("","Override this setting for this volume."),CoreEditorStyles.smallTickbox);
503
+
// Create a rect the height + vspacing of the property that is being overriden
0 commit comments