UnitySubsystemsManifest.json
에는 플러그인이 로드되기 전에 쿼리할 수 있는 공급자에 대한 메타데이터가 포함되어 있습니다. 이 사전의 값은 C#에서 SubsystemDescriptors의 특정 인스턴스를 채우는 데 사용됩니다. 예를 들어 displays
리스트에 있는 정보는 XRDisplaySubsystemDescriptors를 채우는 데 사용됩니다.
예제 .json 파일:
{
"name": "PluginName",
"version": "1.0.0",
"libraryName": "UnityXRDisplayExample",
"displays": [
{
"id": "Display0",
"supportedMirrorBlitReservedModes" : ["leftEye","rightEye", "sideBySide"]
}
],
"inputs:": [
{
"id": "MockHMD Head Tracking Stationary"
},
{
"id": "MockHMD Head Tracking Simulated"
}
]
}
메타데이터 | 설명 |
---|---|
name |
공급자의 이름입니다. 네이티브 플러그인의 RegisterLifecycleHandler 호출의 첫 번째 파라미터와 일치해야 합니다. 향후 UI에 표시될 가능성이 있습니다. |
version |
현재는 사용되지 않습니다. 향후 UI에 표시될 가능성이 있습니다. |
libraryName |
확장자가 없는 공급자의 네이티브 플러그인 바이너리 이름과 일치해야 합니다. |
displays |
디스플레이 보조 시스템 공급자의 컬렉션입니다. |
id |
이 디스플레이 플러그인 설정에 대한 식별자입니다. id 는 해당 보조 시스템에 대한 네이티브 플러그인의 RegisterLifecycleHandler 호출에 전달되는 문자열과 일치해야 합니다. 두 개 이상의 display 를 가질 수 있지만, 이 경우 네이티브 플러그인이 각각에 대해 RegisterLifecycleHandler 를 호출해야 합니다. |
inputs |
입력 보조 시스템 공급자의 컬렉션입니다. |
매니페스트 파일은 id
뒤에 다른 디스플레이를 포함할 수 있습니다. 보조 시스템은 유효한 파라미터를 지정합니다.
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.