立即放置物件
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
平台專屬指南
使用者可透過 Instant Placement API 立即放置 AR 物件,無須先移動裝置,讓 ARCore 建立完整追蹤並偵測表面幾何圖形。
使用者放置物體後,當使用者在環境中移動時,系統會即時調整物體的姿勢。一旦 ARCore 能夠在 AR 物件放置的區域中判斷正確的姿勢,就會更新物件的姿勢和追蹤方法。
在以下範例中,系統會使用預估姿勢來初始放置物件,並以灰階顏色表示。一旦判斷出正確的姿勢,物件就會著色,表示物件使用的是正確的姿勢。突然改變姿勢也會影響物體的「大小」或感知到的尺寸。

在圖 1 中,Instant Placement 已停用,且表面幾何圖形未定義。放在撞球桌右側地板上的物體 (四個小藍點) 似乎已倒下,其姿勢未定義。
在圖 2 中,您可以透過齒輪圖示下方的選單啟用即時刊登位置。
在圖 3 中,啟用即時放置功能後,系統會在場景中放置新物件。這張圖片會以灰階顯示,而非彩色顯示,表示系統尚未修正為正確姿勢。
在圖 4 中,當系統偵測到表面幾何圖形 (由「可追蹤」格線所描述) 時,新物體會變成彩色,且其姿勢會正確顯示。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis page provides developer guides for instant placement in AR experiences using various platforms like Android, Unity, and Unreal Engine.\u003c/p\u003e\n"],["\u003cp\u003eInstant Placement allows users to place AR objects immediately without waiting for full tracking, enhancing the user experience.\u003c/p\u003e\n"],["\u003cp\u003eInitially placed objects have an estimated pose, which is later refined for accuracy as ARCore gathers more environmental data.\u003c/p\u003e\n"],["\u003cp\u003eVisual cues, such as grayscale, indicate when an object's pose is estimated and transitions to color when the pose becomes accurate.\u003c/p\u003e\n"],["\u003cp\u003eThe provided figures illustrate the difference between instant placement enabled and disabled, showcasing the pose refinement process.\u003c/p\u003e\n"]]],[],null,["# Place objects instantly\n\n**Platform-specific guides** \n\n### Android (Kotlin/Java)\n\n- [Instant placement developer guide for Android (Java)](/ar/develop/java/instant-placement/developer-guide)\n\n### Android NDK (C)\n\n- [Instant placement developer guide for Android NDK](/ar/develop/c/instant-placement/developer-guide)\n\n### Unity (AR Foundation)\n\n- [Instant placemnt developer guide for Unity (AR Foundation)](/ar/develop/unity-arf/instant-placement/developer-guide)\n\n### Unreal Engine\n\n- [ARCore SDK for Unreal Engine (official documentation)](https://docs.unrealengine.com/5.0/en-US/developing-for-arcore-in-unreal-engine/)\n\nThe Instant Placement API allows the user to place AR objects instantly, without\nhaving to first move their device to allow ARCore to establish full tracking and\ndetect surface geometry.\n\nAfter the user has placed an object, its pose is refined in real time as the\nuser moves through the environment. Once ARCore is able to determine the correct\npose in the region where the AR object has been placed, it updates the object's\npose and tracking method.\n\nIn the following example, an object is initially placed using an estimated pose,\nwhich is indicated by its grayscale color. Once an accurate pose can be determined,\nthe object becomes colored, indicating that it is using an accurate pose. The\nsudden change in pose also affects the apparent \"size\" or perceived scale of the\nobject.\n\nIn Figure 1, Instant Placement is disabled and surface geometry is undefined.\nObjects placed on the floor to the right of the pool table (four small blue dots)\nappear knocked-over, their poses are undefined.\n\nIn Figure 2, Instant Placement is enabled from the menu under the gear icon.\n\nIn Figure 3, with Instant Placement enabled, a new object is placed in the scene.\nIt appears in grayscale, instead of colored, to denote that it has not been\ncorrected for an accurate pose yet.\n\nIn Figure 4, the new object becomes colored, and its pose is accurate, when the\nsurface geometry (described by the *trackable* grid lines) is detected."]]