/unity-custom-play-button

Extension of Unity Toolbar with custom play buttons for playing a particular scene without switching scene.

Primary LanguageC#MIT LicenseMIT

Unity Custom Play Button

Add 2 custom play buttons to the Unity Toolbar to avoid keep switching scenes when testing the game. Directly play the game (the first scene in build setting) or specific scene (chose from dropdown list) by clicking those buttons without changing scene. When stop playing, scene will change back to the scene before play. Additional dropdown list for quick build scene or bookmarked scene switching without searching it.

image

Installation

Import this from Unity Package Manager. You can download and import it from your hard drive, or link to it from github directly.

Prerequisites

Tested Unity version: 2021 - 2019

Please make sure following package is installed to make this package works:

You can also install the prerequisite package via popup window after you installed this package: image

How to use

image

Play Buttons on Unity Toobar

image

  1. Dropdown button of custom scene - open scene selection window
  2. Play custom scene button - play target scene from dropdown button
  3. Play game button - play the game (the first scene in build setting)

Scene selection window

image

  1. Select custom scene (for play custom scene button)
  2. Bookmark/Unbookmark
  3. Open scene in scene view
  4. Select bookmark scriptable object
  5. Unbookmark

Scene Bookmark

Please note that bookmark is stored in a bookmark scripable object in your project. Please add to .gitignore if you do not want to share it. This scriptable object will be automatucally created from Assets/Editor/CustomPlayButton/BookmarkSetting.asset. You can also edit or reorder the list of bookmarks by modifying the scripable object directly.