1.8.0: Added target frame rate and PlayerPrefs.Delete to toolbar
- Added: Tooltips on all buttons and labels in toolbar tools - Added: Target frame rate with `[min;max]` slider in toolbar - Added: `PlayerPrefs` delete button added to toolbar - Added: Option to select Single/Additive scene load/unload to scene picker - Added: All `IToolbarSettings` will be grouped with a foldout-toggle in Preferences
This commit is contained in:
parent
10d07b986f
commit
fe82c5c9fa
22 changed files with 669 additions and 48 deletions
|
|
@ -13,12 +13,15 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
public override EToolbarPlacement Placement => EToolbarPlacement.Left;
|
||||
public override int Priority => (int)EToolbarPriority.Medium - 1;
|
||||
|
||||
private static readonly GUIContent LABEL = new GUIContent("UI", "Toggles UI visible layer in SceneView");
|
||||
|
||||
protected override void Draw(Rect rect)
|
||||
{
|
||||
int layer = 1 << LayerMask.NameToLayer("UI");
|
||||
bool value = (UTools.visibleLayers & layer) != 0;
|
||||
|
||||
bool temp = EditorGUI.Toggle(rect, value, styles.button);
|
||||
GUI.Label(rect, "UI", styles.labelCenter);
|
||||
GUI.Label(rect, LABEL, styles.labelCenter);
|
||||
|
||||
if (temp == value)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue