Hướng dẫn thêm các thông số màn hình của các thiết bị iOS mới vào Cardboard SDK, để đảm bảo ứng dụng hoạt động tốt trên những thiết bị này. Cập nhật file screen_params.mm theo hướng dẫn trên trang GitHub của Cardboard. Nếu đang sử dụng XR Plugin, bạn cần tạo ra file GfxPluginCardboard.a mới với file screen_params.mm đã được cập nhật. Tiến hành các bước trong phần “Download và xây dựng ứng dụng demo” từ Quickstart để mở workspace Cardboard.xcworkspace trong XCode. Chọn sdk module và chọn “Generic iOS Device” hoặc thiết bị cụ thể để xây dựng sdk module và thay thế file GfxPluginCardboard.a tại thư mục cardboard-xr-plugin/Runtime/iOS/. Đảm bảo rằng bạn thực hiện đúng các bước để cập nhật thông số màn hình cho ứng dụng Cardboard trên iOS. #iOSdevices #CardboardSDK #GoogleForDevelopers
Nguồn: https://developers.google.com/cardboard/develop/ios/screen-params
Stay organized with collections
Save and categorize content based on your preferences.
Each year, new iOS devices are released. In order to make the Cardboard SDK
work with these new devices, it is required to update screen_params.mm.
Source of information
What needs to be updated
Take a look at the history of screen_params
to ensure that the correct lines are being updated.
Update the XR Plugin with the new screen param files
If the XR Plugin is being used, it is required to generate a new
GfxPluginCardboard.a
with the updated screen_params.mm
file.
Follow the steps in the “Download and build the demo app” section from the
Quickstart
up to step 2 to open Cardboard.xcworkspace
workspace in XCode. Select the sdk
module and then Generic iOS Device as the target device (or choose to build
for a specific phone if that suits your needs better). Build the sdk module,
copy the generated .a
file and replace the GfxPluginCardboard.a
file in
cardboard-xr-plugin/Runtime/iOS/.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
(
“type”: “thumb-down”,
“id”: “missingTheInformationINeed”,
“label”:”Missing the information I need”
,
“type”: “thumb-down”,
“id”: “tooComplicatedTooManySteps”,
“label”:”Too complicated / too many steps”
,
“type”: “thumb-down”,
“id”: “outOfDate”,
“label”:”Out of date”
,
“type”: “thumb-down”,
“id”: “samplesCodeIssue”,
“label”:”Samples / code issue”
,
“type”: “thumb-down”,
“id”: “otherDown”,
“label”:”Other”
)
(
“type”: “thumb-up”,
“id”: “easyToUnderstand”,
“label”:”Easy to understand”
,
“type”: “thumb-up”,
“id”: “solvedMyProblem”,
“label”:”Solved my problem”
,
“type”: “thumb-up”,
“id”: “otherUp”,
“label”:”Other”
)
“lastModified”: “Last updated 2024-10-04 UTC.”
(((“Easy to understand”,”easyToUnderstand”,”thumb-up”),(“Solved my problem”,”solvedMyProblem”,”thumb-up”),(“Other”,”otherUp”,”thumb-up”)),((“Missing the information I need”,”missingTheInformationINeed”,”thumb-down”),(“Too complicated / too many steps”,”tooComplicatedTooManySteps”,”thumb-down”),(“Out of date”,”outOfDate”,”thumb-down”),(“Samples / code issue”,”samplesCodeIssue”,”thumb-down”),(“Other”,”otherDown”,”thumb-down”)),(“Last updated 2024-10-04 UTC.”))
[ad_2]