로우레벨 네이티브 플러그인 인터페이스 외에, Unity 에디터는 특정 이벤트가 발생하면 콜백을 수신할 수 있는 로우레벨 렌더링 확장 기능도 지원합니다. 주로 플러그인에서 로우레벨 렌더링을 구현 및 제어하고 Unity의 멀티스레드 렌더링과 함께 작동하도록 하는 데 사용됩니다.
확장 기능의 로우레벨 특성으로 인해, 기기가 생성되기 전에 플러그인을 미리 로드해야 할 수 있습니다. 현재 규칙은 이름 기반이며, 플러그인 이름은 GfxPlugin 으로 시작해야 합니다(예: GfxPluginMyNativePlugin).
Unity 에디터에서 노출되는 렌더링 확장 기능 정의는 IUnityRenderingExtensions.h 파일에 있으며, 에디터와 함께 제공됩니다(파일 경로_Unity\Editor\Data\PluginAPI_ 참조).
네이티브 플러그인을 지원하는 모든 플랫폼에서 이 확장 기능이 지원됩니다.
렌더링 확장 기능을 사용하기 위해서는 플러그인이 UnityRenderingExtEvent 및 UnityRenderingExtQuery (옵션)를 익스포트해야 합니다. 포함 파일에는 여러 문서가 있습니다.
Unity 에디터에서 빌트인 이벤트 중 하나가 트리거될 때마다 UnityRenderingExtEvent 를 통해 플러그인이 호출됩니다. 스크립트에서 CommandBuffer.IssuePluginEventAndData 또는 CommandBuffer.IssuePluginCustomBlit를 통해 콜백을 CommandBuffers에 추가할 수도 있습니다.
Unity 2017.1의 새로운 기능 NewIn20171
2017–07–04 페이지 게시됨
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.