実現したいこと
Inspectorビューでアタッチされたシーンに移動する
問題のコード
c#
1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4using UnityEngine.SceneManagement; 5 6public class タイトルボタン : MonoBehaviour 7{ 8 public Scene スタートシーン; 9 // Start is called before the first frame update 10 void Start() 11 { 12 13 } 14 void ゲームスタート() { SceneManager.LoadScene("スタートシーン"); } 15 void 終了() { Application.Quit(); } 16 // Update is called once per frame 17 void Update() 18 { 19 20 } 21}
SceneManager.LoadScene関数はビルドに含まれるシーンを検索してそのシーンに移動する関数だと思うのですが
引数がシーンでその引数のシーンに移動する関数はありますか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。