Android XR SDK 現已在開發人員預覽版中推出。敬請提供意見回饋!請前往
支援頁面與我們聯絡。
動態
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
動態效果可將 XR 應用程式從靜態場景轉變為生動有趣的互動體驗。使用動畫設計時,請務必考量使用者的視覺和物理舒適度。
- UI 動畫:針對使用者介面元素,您可以遵循已建立的 UI 動畫設計標準,例如 Material Design 的動畫指南。
- XR 應用程式中的 3D 動作:建構含有 3D 物件和環境互動的應用程式時,請注意大幅移動可能會讓使用者感到不適。請謹慎移動可讓使用者在虛擬世界中找到方向的 UI 或環境。如果移動速度過快,使用者可能會感到身體不適或暈車。
- 設計舒適性:避免讓使用者感到不適的動作。
- 從小處著手:使用細微的動作鼓勵使用者探索您的應用程式,並將大動作留給特定時刻。
- 提供指引:使用動畫來協助使用者瞭解發生了什麼事,以及該看哪裡。
如何加入使用者友善的動畫
請考量應用程式中的任何動作會給使用者帶來什麼感覺。使用者在控制空間移動時,會感到更舒適。
如果應用程式在使用者未預期的情況下,決定移動某個物件,就可能會造成使用者不適。如果眼睛感知到虛擬世界中的動作,而內耳偵測到你處於靜止狀態,這種感官不一致的情況可能會引發暈車症。
請遵循下列最佳做法,讓使用者感到安全無虞。
- 明確的新手上路流程:為了協助使用者適應應用程式,請逐步介紹動畫機制。
- 休息站:讓使用者休息片刻或減少動作,以免疲勞。
- 考慮讓動作為選用功能:部分使用者可能會更喜歡調整動作程度。
- 可預測的相機動作:流暢且可預測的相機動作有助於避免不適。
- 考慮使用動畫回饋:如果您想打造可信的體驗,可以使用遵循真實物理規則的動畫。
- 全景模式的移動可能會讓使用者感到不適。在需要大動作的情況下,您可能需要淡出和淡入、隱藏使用者的周邊視野、緩慢加速或避免旋轉。
- 限制大型物件的動作,因為這可能會讓使用者感覺自己也在移動。為避免使用者感到不適,建議您將這些物件設為半透明或不易察覺。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Motion can transform your XR app from a static scene into a vibrant, interactive\nexperience. It's important to consider a user's visual and physical comfort when\ndesigning with motion.\n\n- **UI motion** : For user interface elements, you can follow established UI motion design standards, such as [Material Design's motion guidelines](https://m3.material.io/styles/motion/overview).\n- **3D motion in XR apps**: When building an app with 3D objects and environment interactions, keep in mind large movements may be uncomfortable to users. Be thoughtful when moving UI or environments that ground a user in your virtual world. If moved too quickly, a user may experience physical discomfort or motion sickness.\n- **Design for comfort**: Avoid motion that makes people feel sick.\n- **Start small**: Use subtle movements to encourage users to explore your app. Save big movements for specific moments.\n- **Provide guidance**: Use motion to help users understand what's happening and where to look.\n\n### How to add user-friendly motion\n\nConsider how any movements in your app make a user feel. Motion in space is more\ncomfortable to users when they are in control.\n\nDiscomfort can happen when an app decides to move something in space without a\nuser expecting it. If your eyes perceive movement in the virtual world while\nyour inner ear detects that you're still, this sensory mismatch can trigger\nmotion sickness.\n\nFollow these best practices to keep users feeling safe and comfortable.\n\n- **Clear onboarding**: To help users acclimate to your app, introduce motion mechanics gradually.\n- **Rest stops**: Moments of stillness or reduced motion allow users to rest and avoid fatigue.\n- **Consider making motion optional**: Some users may be more comfortable when they can adjust the level of motion.\n- **Predictable camera motions**: Smooth and predictable camera movements can help prevent discomfort.\n- **Consider animated feedback**: If you want to create a believable experience, you can use animations that follow real-world physics.\n- **Whole world movements can make people feel sick**. In cases where big movements are necessary, you may want to fade out and fade in, hide a user's peripheral vision, accelerate slowly, or avoid rotating.\n- **Limit motion of large objects**, because it can feel like the user is moving as well. To prevent users from experiencing discomfort, consider making these objects semi-transparent or less noticeable."]]