Skip to content

Helps you run important scripts before the game is started, e.g. loading an initialization scene with the help of Addressables package.

License

Notifications You must be signed in to change notification settings

Sokka06/Initializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Initializer

What is it?

Initializer helps you run scripts when the game is started in the editor and build with the help of Addressables package. This tool can be, for example, used to load an (Addressable) "Initialization" scene.

Getting started

  1. Clone or download repository.
  2. Copy Initializer folder from Plugins folder to your project.
  3. Take a look at the included Demo.
  4. Done!

Developed in Unity 2020.3.41f1, but I don't see why it wouldn't work in any Unity version as long as Addressables package is supported.

How To Use

  1. Make sure Addressables package is added to your project.
  2. Right-click in a folder and navigate to Create -> Initializer -> Default Initializer to create a new Initializer asset.
  3. Mark your new Initializer asset as Addressable and set the addressable name as Initializer.
  4. Create a new scene (named Initialization, for example) and mark it as Addressable. The included Default Initializer script will load this scene when the game is started.
  5. Select the Initializer asset you created in step 2 and use the inspector to select the Initialization scene in the Scene field.
  6. Press play!

Remember: If something doesn't work in build, try rebuilding Addressables (Window -> Asset Management -> Addressables -> Groups) and build the game again.

Demos

1. Basic

A basic example that loads an Initialization scene when the game is started.

About

Helps you run important scripts before the game is started, e.g. loading an initialization scene with the help of Addressables package.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published