런타임 시점에 Unity는 열려 있는 씬 개수에 관계없이 한 번에 하나의 오클루전 컬링 데이터 에셋만 로드합니다. 따라서 한 번에 하나의 씬을 로드할지, 아니면 한 번에 여러 개의 씬의 로드할지에 따라 오클루전 컬링 데이터를 다르게 준비해야 합니다.
LoadSceneMode.Single를 사용하여 한 번에 하나의 씬을 로드하는 경우 다음과 같이 각 씬에 대해 개별적으로 오클루전 컬링 데이터를 베이크해야 합니다.
런타임 시점에 다음 단계에 따라 씬을 로드하십시오.
LoadSceneMode.Additive를 사용하여 한 번에 여러 개의 씬을 로드하는 경우 다음과 같이 해당 씬 모두에 대한 데이터를 베이크해야 합니다.
런타임 시점에 다음 단계에 따라 씬을 로드하십시오.
LoadSceneMode.Single
을 사용하여 씬을 로드합니다. Unity는 활성 씬이 있고 오클루전 데이터 에셋이 함께 존재하는 경우 이를 언로드합니다. 그런 다음 공유 오클루전 데이터 에셋과 함께 씬을 로드합니다.LoadSceneMode.Additive
를 사용하여 다른 씬을 로드합니다. Unity가 추가로 로드된 씬의 오클루전 데이터가 활성 씬의 오클루전 데이터와 동일하다고 확인하면 오클루전 컬링이 의도한 대로 작동합니다.공유 오클루전 데이터 에셋은 파일 크기가 더 큽니다. 더 큰 오클루전 데이터 에셋을 사용해도 런타임 CPU에 추가적인 영향은 없습니다.
Unity 에디터에서 여러 개의 씬으로 작업하는 자세한 방법은 다중 씬 편집 문서를 참조하십시오.
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.