/CustomToolbar

CustomToolbar

Primary LanguageC#MIT LicenseMIT

CustomToolbar

Unity 2019.4+ License: MIT

based on this marijnz unity-toolbar-extender. Also avaliable on Asset Store. Please, review it to make it more popular

image

Why you should use the CustomToolbar?

This custom tool helps you to test and develop your game easily

Installation

(For Unity 2018.3 or later) Using OpenUPM

This package is available on OpenUPM.
You can install it via openupm-cli.

openupm add com.smkplus.customtoolbar

(For Unity 2019.2 or later) Through Unity Package Manager

  • MenuItem - Window - Package Manager
  • Add package from git url
  • paste https://github.com/smkplus/CustomToolbar.git#master

(For Unity 2018.3 or later) Using Git

Find the manifest.json file in the Packages folder of your project and add a line to dependencies field. "com.smkplus.customtoolbar": "https://github.com/smkplus/CustomToolbar.git#master" Or, use UpmGitExtension to install and update the package.

For Unity 2018.2 or earlier

  1. Download a source code zip this page
  2. Extract it
  3. Import it into the following directory in your Unity project
    • Packages (It works as an embedded package. For Unity 2018.1 or later)
    • Assets (Legacy way. For Unity 2017.1 or later)

From Unity Asset Store

  1. https://assetstore.unity.com/packages/tools/utilities/custom-toolbar-189047
  2. Add it to project as usual

Sample scenes to test

You can import sample scenes from package manager.

image


Scene selection dropdown to open scene in editor. Scenes in build have unity icon while selected and appear above splitter in list

image


when you want to clear all playerprefs you have to follow 3 step:

image

but you can easily Clear them by clicking on this button:

image


another button relevant to saving is this button that prevents saving during the gameplay. because sometimes you have to Clear All playerprefs after each test so you can enable this toggle:

Enable Playerprefs:

image

Disable Playerprefs:

image


you can restart the active scene by this button:

image


suppose you want to test your game so you should start game from scene 1(Menu):

image

you have to find scene 1 (Menu):

image

then you should start the game:

image

this button is shortcut to start the game from scene 1:

image


I usually test my games by changing timescale.

image


Also it usefull to test your game with different framerates, to be sure that it is framerate-independent.

image


Button to recompile scripts. Usefull when you working on splitting code into .asmdef

image


Force reserialize selected(in project window) assets. What it does - https://docs.unity3d.com/ScriptReference/AssetDatabase.ForceReserializeAssets.html

image


Force reserialize all assets. Same as previous, but for all assets and takes some time. Use this after adding new asset or updating unity version in order to not spam git history with unwanted changes.

image


You can customize the toolbar on Project Setting

Images~/ProjectSetting-CustomToolbar.png


How to Contribute

Development directory:

  1. Create a project through Unity Hub.
  2. clone repository at Package folder at root of project.
  3. edit codes with your IDE.

image

image

image