Load scene by name when pressing button in Unity
A downloadable asset pack
This Unity Package is a solution to load any scene by name when pressing a button of the user interface.
To use this solution you only need to place it on any GameObject of your scene, I suggest you create an empty GameObject and call it a meaningful way like "Scene Loader", then attach to it the script that comes in the package.
To make a button load a scene, in the On Click event of the button add a new event, drag the GameObject that has the scene loader script and select the "LoadScene" function from the list. Finally write the name of the scene you want to load in the field that appears.
For more information check the video tutorial of this solution.
Content of the package
- 3 example scenes
- Instructions on how this solution works and links to informative videos
- Example script to load scene by name (can be used directly in your project)
- Responsive user interface
HOW TO IMPORT A UNITY PACKAGE:
You can support my content in the following way:
- Subscribe to my YouTube Channel
- Follow my ITCH.IO page to know when new packages are released
- Share my videos on social media
Donation is optional, I encourage you to review this packet carefully before making your donation. Donations are not refundable.
Updated | 23 days ago |
Status | Released |
Category | Assets |
Author | GDT Solutions |
Made with | Unity |
Tags | asset, script, sourcecode, Unity |
Code license | GNU General Public License v3.0 (GPL) |
Asset license | Creative Commons Attribution v4.0 International |
Average session | A few seconds |
Languages | English |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.