Hướng dẫn thêm thông số màn hình cho các thiết bị iOS mới vào Cardboard SDK | Google cho các Nhà phát triển

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.


[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *