Định cấu hình phiên ARCore bằng Tiện ích ARCore cho Unity
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Định cấu hình phiên ARCore để xây dựng trải nghiệm AR cho ứng dụng.
Phiên là gì?
Tất cả quy trình AR, chẳng hạn như theo dõi chuyển động, hiểu môi trường và ước tính ánh sáng, đều diễn ra bên trong một phiên ARCore. ARSession là điểm truy cập chính vào API ARCore. Lớp này quản lý trạng thái hệ thống AR và xử lý vòng đời của phiên, cho phép ứng dụng tạo, định cấu hình, bắt đầu hoặc dừng phiên. Quan trọng nhất, API này cho phép ứng dụng nhận các khung hình cho phép truy cập vào hình ảnh máy ảnh và tư thế thiết bị.
Bạn có thể sử dụng phiên này để định cấu hình các tính năng sau:
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-14 UTC."],[[["An ARCore session manages all AR processes like motion tracking and environmental understanding, and is accessed through the `ARSession` object."],["Before configuring an ARCore session, ensure both AR Foundation and ARCore Extensions are properly set up in your Unity project."],["You can configure extension features within the ARCoreExtensionsConfig asset, which allows you to customize session behavior."],["Starting with AR Foundation 4.0, session management is handled through `LoaderUtility` functions instead of destroying the `ARSession` game object."],["After configuring your session, explore the provided quickstart guides for Android and iOS to begin building AR experiences with ARCore Extensions."]]],["An ARCore session is essential for AR processes like motion tracking and lighting estimation. `ARSession` manages the AR system state, including session creation and configuration, and enables access to camera images and device pose. Before configuring the ARCore session, AR Foundation and ARCore Extensions must be set up. You need to create an `ARCore Extensions Config` asset in Unity and connect it to the `ARCore Extensions` object. Session management is done using `LoaderUtility` functions in newer versions of AR Foundation.\n"]]