Unity 클라우드 빌드에서 빌드 타겟을 생성했다면, 빌드 타겟의 Advanced Options 에서 선처리 및 후처리 익스포트 메서드를 설정할 수 있습니다. (고급 설정 접근 및 수정 방안을 참조하십시오.)
이 창에 Pre-Export Method Name 과 Post-Export Method Name 을 입력합니다.
선처리 및 후처리 익스포트 메서드를 사용하면 Unity 프로젝트가 빌드되기 전후에 액션이 동작할 수 있도록 합니다. 단, 이러한 메서드는 Asset 폴더의 Editor 폴더에 위치한 프로젝트 내부 코드여야 합니다.
Unity 프로젝트에서 퍼블릭 정적 메서드를 생성한 경우, Unity 에디터가 프로젝트를 익스포트하기 전 Unity 클라우드 빌드가 이를 실행하도록 할 수 있습니다. Unity 클라우드 빌드가 메서드를 호출하는 경우, 선택 파라미터로서 BuildManifestObject
를 전달합니다. 예를 들면, Namespace.NeatMethod(UnityEngine.CloudBuild.BuildManifestObject)
같은 식으로 전달합니다. 여기서 BuildManifestObject
는 현재 빌드에 대한 빌드 매니페스트입니다. 자세한 내용은 매니페스트 빌드를 참조하십시오.
Unity 프로젝트에서 퍼블릭 정적 메서드를 생성한 경우, Unity 에디터가 프로젝트를 익스포트한 이후 Unity 클라우드 빌드가 이를 실행하도록 할 수 있습니다. Unity클라우드 빌드가 이 메서드를 호출하는 경우, 문자열을 파라미터로서 전달합니다. 예를 들면, Namespace.OtherMethod(string)
같은 식으로 전달합니다. 여기서 string
은 익스포트된 프로젝트의 경로입니다. iOS 플랫폼의 경우, Xcode에 의해 프로세싱 되어 iOS 애플리케이션의 .ipa 파일로 변환되기 전에 프로젝트가 Xcode 프로젝트의 위치를 알 수 있게 됩니다.
참고: 만일 Unity에서 코드에 메서드를 하나라도 태그한 경우 PostProcessBuildAttribute, 태그된 메서드는 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.