커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
스스로 해결
StartScene 에서 MainScene 으로 넘어가지 않고 에러가 뜹니다.
undefined주차
북마크
김*중
댓글
1
추천
0
조회수
17
조회수
17
스스로 해결

StartScene의 startBtn을 만들어서 실행했을때 버튼을 눌렀는데 MainScene가 나오지 않고 오류가 발생합니다.



startBtn 코드입니다

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.SceneManagement;


public class startBtn : MonoBehaviour

{

  // Start is called before the first frame update

  void Start()

  {

     

  }


  // Update is called once per frame

  void Update()

  {

     

  }

   

  public void gameStart()

  {

    SceneManager.LoadScene("MainScene");

  }

}






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