์ ๋ํฐ ์์ ์ฌ ์ ํ ํ ๋ ค๊ณ ๋ฒํผ์ on click() ํจ์์ ๋ฐ์ ํจ์ ์ง์ ํด ์คฌ๋๋ฐ
์ ์๋์ด ๊ฐ๋์ง ๋ชป์ฐพ๊ฒ ๋ค
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class StartButtonController : MonoBehaviour
{
ย ย // Start is called before the first frame update
ย ย void Start()
ย ย {
ย ย ย ย ย
ย ย }
ย ย // Update is called once per frame
ย ย void Update()
ย ย {
ย ย ย ย ย
ย ย }
ย ย public void ButtonClick()
ย ย {
ย ย ย ย SceneManager.LoadScene("2_Play");
ย ย }
}
์ฌ ์ฌ์ฉ์ค์ ํ์?
๋น๋์ธํ ์์ ์ฌ ์ฌ๋ ธ์?
๋น๋ ์ธํ ์์ ๋น๋ํ ์ฌ ์ ์ฌ๋ ค์ฃผ๋ฉด ๋ก๋ ์ ๋จ
๋น๋ ์ธํ ์์ ๋น๋ํ ์ฌ ์ฌ๋ ธ๋๋ฐ ์๋ผ
์ฌ์ฉํ ์ฌ์ ๋น๋ ์ธํ ์ ์ถ๊ฐํ์ง ์์๊ฑฐ๋, ์ฌ ์ด๋ฆ์ ์๋ชป ์ ๋ ฅ ํ๊ฑฐ๋ ๋ฑ๋ฑ ์ฝ์์ฐฝ์ ์๋ฌ๋จ๋๊ฑฐ ์ฝ์ด๋ณด์
์ฌ์ด๋ฆ ๋๋ฒ๊ทธ ๋ก๊ทธ๋ก ์ฝ์ด์์ ๋ณต๋ถํ๊ณ ๋น๋์ธํ ์ ์ถ๊ฐ ํจ
์ ์๋๋ฉด int๋ก ๋ถ๋ฌ์ค๋ฉด ๋จ. ์ ์ผ ํ์คํจ
์ด์ผ ํ๋ ๊ฒ?
๋น๋ ์ธํ ์ ์ฌ ์ฌ๋ฆฌ๋ฉด ์ฌ ์ด๋ฆ ์์ ์ซ์ ๋จ์์. ๊ทธ ์ซ์๊ฐ 1์ด๋ผ๋ฉด LoadScene(1) <- ์ด๋ฐ ์์ผ๋ก ๋ถ๋ฌ์ค๋ฉด ๋จ
๋ฒํผ ๋๋ ์๋ ์ฝ์์ ์๋ฌ ๋ญ๋ผ๊ณ ๋จ๋์ง ์ ์ด์ฃผ์
Your current multi-scene setup has inconsistent Lighting settings which may lead to different lighting when loading scenes individually or in a different order! Consider homogenizing the following: 1/2 scenes have different Realtime GI settings. Your multi-scene setup may be improved by tending to the following issues: Multiple scenes baked with Auto enabled can appear differently in Play mode wh
ํน์ ์ ๋ํฐ 2018.2 ๋ฒ์ ๋ ์ฐ๊ณ ์์?
2018.3.8f1 personal ์ฐ๊ณ ์์
๋์ด๋ ๋น์ทํ ์ด์ ๊ฐ์๋ฐ 2018.3๋ฒ์ ์์ ์ด๋ฏธ ํด๊ฒฐ๋ ๋ฌธ์ ๋ผ๊ณ ํจ.
https://issuetracker.unity3d.com/issues/mse-in-play-mode-inconsistent-lighting-settings-warning-is-thrown-when-gi-is-disabled
๊ทผ๋ฐ ๋ฐ์ ํด๊ฒฐ์๋๋ค๋ ๋๊ธ๋ค๋ ์์... ์ผ๋จ ๋ฌธ์ ๋ ๋ฉํฐ ์ฌ์ ์ฌ์ฉํ ๋ ์กฐ๋ช ์ด ๋ค๋ฅด๋ฉด ๋ฌธ์ ๊ฐ ์๊ธด๋ค๊ณ ๊ฒฝ๊ณ ํ๋๊ฑฐ์. ๋ ์๋ฌ์ฐฝ์๋ ๋ฆฌ์ผํ์ GI ์ค์ ์ด ๋ฌธ์ ๋ผ๊ณ ํ๋ ์กฐ๋ช ์ ๋ฆฌ์ผํ์ GI๋ฅผ ๊บผ๋ณด์