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
|
|
@ -22,7 +22,7 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
private static BuildTarget[] TARGETS = new BuildTarget[0];
|
||||
private static GUIContent[] TARGET_LIST = new GUIContent[0];
|
||||
private static int SELECTED_INDEX = -1;
|
||||
|
||||
|
||||
private static void Initialize()
|
||||
{
|
||||
if (!IS_DIRTY)
|
||||
|
|
@ -128,12 +128,16 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
|
||||
private static GUIContent GetButtonContent(BuildTargetGroup group)
|
||||
{
|
||||
const string TOOLTIP = "Select target platform for build";
|
||||
|
||||
var name = $"BuildSettings.{group}.Small";
|
||||
|
||||
if (group == BuildTargetGroup.WSA)
|
||||
name = "BuildSettings.Metro.Small";
|
||||
|
||||
return EditorGUIUtility.IconContent(name);
|
||||
GUIContent iconContent = EditorGUIUtility.IconContent(name);
|
||||
var content = new GUIContent(iconContent.image, TOOLTIP);
|
||||
return content;
|
||||
}
|
||||
|
||||
private static int GetHashCode(BuildTargetGroup group, BuildTarget target)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue