커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
버튼이 클릭되지 않습니다.
게임 개발이 처음이어도 쉽게 배우는 모바일 게임 개발 v0
2주차
북마크
조*신
댓글
5
추천
0
조회수
11
조회수
11
답변 완료

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

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


다시하기 클릭하면 다시 시작 되어야하는데 오류가 발생합니다.



스파르타 즉문즉답

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...

UnityEngine.SceneManagement.SceneManager:LoadScene (string)

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

UnityEngine.EventSystems.EventSystem:Update ()






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