Konfigurowanie sesji ARCore za pomocą rozszerzeń ARCore dla Unity
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Skonfiguruj sesję ARCore, aby tworzyć w aplikacji funkcje AR.
Czym jest sesja?
Wszystkie procesy AR, takie jak śledzenie ruchu, rozpoznawanie środowiska i szacowanie oświetlenia, odbywają się w ramach sesji ARCore. ARSession to główny punkt wejścia do interfejsu API ARCore. Zarządza stanem systemu AR i cyklem życia sesji, umożliwiając aplikacji tworzenie, konfigurowanie, uruchamianie i zatrzymywanie sesji. Co najważniejsze, umożliwia aplikacji odbieranie klatek, które umożliwiają dostęp do obrazu z aparatu i pozycji urządzenia.
Sesji można używać do konfigurowania tych funkcji:
Zanim zaczniesz używać rozszerzeń ARCore, musisz skonfigurować AR Foundation. Instrukcje konfigurowania sceny AR znajdziesz w dokumentacji AR Foundation.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-05-26 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"]]