Skip to content

Play a specific scene in unity playmode and jump back to current edit scene when finish playing.

License

Notifications You must be signed in to change notification settings

CSaratakij/SceneSelector

Repository files navigation

SceneSelector

  • Play a specific scene in unity playmode and jump back to current edit scene when finish playing image

Featured

  • Backup & Restore scene list setup in BuildSettings
  • Support multiple scene list profiles, great for teams that require multiple scene list setup for each team member
  • Support playing from custom scene list in Editor without messing with BuildSettings's scene build index

Install

Use unity package manager, install via git url.

url : https://github.com/CSaratakij/SceneSelector.git#upm

Getting Started

  1. Go to "Window -> General -> Scene Selector"
  2. Select CustomFirstScene play mode
  3. Add specific scene and hit play in SceneSelector's play button

Play mode support

UseBuildSetting

  • Use the first enabled scene in BuildSettings when enter playmode

CustomFirstScene

  • Use the selected scene as the first scene when enter playmode

CustomSceneList

  • Replace BuildSettings scene list setup with custom scene list profile, and use the first enabled scene in custom scene list when enter playmode
  • Revert BuildSettings scene list setup to original after exit playmode

Create the new CustomSceneList Profile

  • From ProjectWindow "Create > SceneSelector > CustomSceneList", then you can use this profile with CustomSceneList playmode

Note

  • If you want to use legacy version of Scene Selector, define 'SCENE_SELECTOR_ENABLE_LEGACY' flags image
  • Enjoy what you see? Buy me a coffee! ☕