Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FutureTech Shared
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MOVES
FutureTech Shared
Commits
ac887065
Commit
ac887065
authored
5 years ago
by
Heine, Eric R
Browse files
Options
Downloads
Patches
Plain Diff
Added a simple script to load a different scene when told to
parent
e8b6be8f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Scene Loader/SceneChanger.cs
+16
-0
16 additions, 0 deletions
Scene Loader/SceneChanger.cs
Scene Loader/SceneChanger.cs.meta
+11
-0
11 additions, 0 deletions
Scene Loader/SceneChanger.cs.meta
with
27 additions
and
0 deletions
Scene Loader/SceneChanger.cs
0 → 100644
+
16
−
0
View file @
ac887065
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
namespace
Shared.SceneLoader
{
// A Component that loads a different Scene when told to
public
class
SceneChanger
:
MonoBehaviour
{
[
Tooltip
(
"Which scene to change to"
)]
[
Scene
]
public
string
sceneToLoad
;
//---------------------------------------------------------------------------
public
void
ChangeScene
()
{
SceneManager
.
LoadScene
(
sceneToLoad
);
}
}
}
This diff is collapsed.
Click to expand it.
Scene Loader/SceneChanger.cs.meta
0 → 100644
+
11
−
0
View file @
ac887065
fileFormatVersion: 2
guid: 7bd3bce38f24fa746b7be022aad1dccf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment