기본적으로 씬 재로드는 활성화됩니다. 즉 플레이 모드를 시작하면 Unity는 모든 기존 씬 게임 오브젝트를 삭제하고 디스크에서 씬을 다시 로드합니다. Unity가 이 작업을 완료하는 데 걸리는 시간은 씬의 복잡도에 비례합니다. 프로젝트가 복잡해지면 Play 버튼을 누른 후 씬이 에디터에 완전히 로드될 때까지 걸리는 시간이 길어집니다.
씬 재로드를 비활성화하면 프로세스 시간이 단축됩니다. 이렇게 하면 프로젝트 개발을 더욱 빠르게 반복할 수 있습니다. Unity는 디스크에서 씬을 다시 로드하는 대신, 씬의 수정된 콘텐츠만 초기화합니다. 따라서 씬의 언로드와 재로드가 시간과 성능에 영향을 미치지 않습니다. Unity는 새로 로드된 것처럼 여전히 동일한 초기화 함수(예: OnEnable
, OnDisable
, OnDestroy
)를 호출합니다.
단, 씬 재로드를 비활성화하면 에디터에서 애플리케이션을 시작하는 데 걸리는 시간이 빌드된 버전의 시작 시간을 나타내지 않는다는 점에 유의하십시오. 따라서 프로젝트의 시작 시간 동안 발생하는 동작을 디버깅하거나 프로파일링하고 싶다면 씬 재로드를 활성화해야 합니다. 그러면 빌드된 버전의 로딩 시간 및 프로세스를 더욱 정확하게 파악할 수 있습니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.