다음 방법 중 하나로 새로운 씬 템플릿을 생성할 수 있습니다.
템플릿을 생성한 후 해당 프로퍼티를 편집하거나 템플릿으로 새로운 씬을 생성할 수 있습니다.
팁: |
---|
씬에서 템플릿을 생성하려면 씬과 동일한 이름으로 폴더를 생성하고, 복제하려는 모든 에셋을 해당 폴더에 넣으십시오. 템플릿을 생성하면 Unity는 해당 에셋에 대해 Clone 프로퍼티를 자동으로 활성화합니다. 자세한 내용은 씬 템플릿 편집을 참조하십시오. |
먼저 빈 씬 템플릿을 생성한 후 나중에 설정할 수도 있습니다. 빈 템플릿은 해당 프로퍼티를 편집하여 씬 에셋을 연결하기 전에는 New Scene 다이얼로그에 나타나지 않습니다.
현재 프로젝트 폴더에 빈 씬 템플릿을 생성하려면 다음을 수행하십시오.
특정 프로젝트 폴더에 빈 씬 템플릿을 생성하려면 다음 단계를 따르십시오.
다음 중 하나를 수행합니다.
프로젝트 창에서 폴더를 마우스 오른쪽 버튼으로 클릭하여 컨텍스트 메뉴를 엽니다.
프로젝트 창에서 폴더를 열고 에셋 창을 마우스 오른쪽 버튼으로 클릭하여 컨텍스트 메뉴를 엽니다.
Create > Scene Template을 선택합니다.
모든 기존 씬을 씬 템플릿으로 변환할 수 있습니다. 기존 씬에서 템플릿을 생성한 후 해당 프로퍼티를 편집하여, 템플릿으로 새로운 씬을 생성할 때 Unity가 복제할 종속성을 지정해야 합니다.
기존 씬 에셋에서 템플릿을 생성하려면 프로젝트 창을 열고 다음 중 하나를 수행하십시오.
현재 씬에서 씬 템플릿을 생성하려면 메뉴에서 File > Save As Scene Template을 선택하십시오.
저장하지 않은 변경 사항이 있는 경우 템플릿을 저장하기 전에 씬을 저장하라는 메시지가 표시됩니다.
현재 씬에서 템플릿을 생성한 후 해당 프로퍼티를 편집하여, 템플릿으로 새로운 씬을 생성할 때 Unity가 복제할 종속성을 지정해야 합니다.
C# 스크립트에서 씬 템플릿을 생성할 수 있습니다.
빈 씬 템플릿을 생성하려면 CreateSceneTemplate 메서드를 사용하십시오.
SceneTemplate.CreateSceneTemplate(string sceneTemplatePath)
기존 씬에서 템플릿을 생성하려면 CreateTemplateFromScene 메서드를 사용하십시오. 그러면 Unity가 씬을 템플릿에 자동으로 연결한 후 씬의 종속성을 추출합니다.
SceneTemplate.CreateTemplateFromScene(SceneAsset sourceSceneAsset, string sceneTemplatePath);
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.