커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
1-9 게임이 다시 재시작 하지 않아요
undefined주차
북마크
김*엽
댓글
3
추천
0
조회수
10
조회수
10
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


Retry 버튼 까지 만들고 누르면 다시 게임이 재시작이 안됩니다.



스파르타 즉문즉답




using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.SceneManagement;


public class RetryButton : MonoBehaviour

{

  public void Retry()

  {

    SceneManager.LoadScene("MainScene");

  }

}




에러 메세지

Scene 'MainScene' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.

To add a scene to the build settings use the menu File->Build Settings...


Scene 'MainScene' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.

To add a scene to the build settings use the menu File->Build Settings...

UnityEngine.SceneManagement.SceneManager:LoadScene (string)

RetryButton:Retry () (at Assets/scripts/RetryButton.cs:10)

UnityEngine.EventSystems.EventSystem:Update ()




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴