互动 (UX)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
初始化
清晰过渡到 AR
通过视觉元素告知用户他们即将从 2D 屏幕过渡到 AR 模式。您可以在即将发生过渡时调暗手机显示屏,或使用特效对屏幕进行模糊处理。
在某些应用中,AR 体验中只有一部分会发生。
尽量让用户顺畅地过渡到 AR。让用户启动从 2D 界面到 AR 的过渡。当用户拥有控制权时,这种限制不会显得不显眼。
您可以添加一个按钮(例如 AR 图标),让用户自行触发启动。
轻轻地让用户进入您的 AR 环境。使用简单的过渡,例如动画或淡出。

屏幕外探索
通过视觉或声音提示鼓励用户探索屏幕外。
视觉提示可以推动用户探索周围的更强大的 AR 世界。例如,让一只鸟离开屏幕,直到用户关注它为止。这种移动有助于引导用户完成预期目标。

促使用户探索屏幕外空间
音频探索
使用音频提示来提升用户体验并鼓励用户互动。
音频可鼓励用户与应用互动并探索 360 度全景环境。确保音频能够增强体验,而不是分散观众的注意力。
如果您使用音频制作 3D 对象或 360 度视频,请注意以下几点:
- 避免同时播放声音
- 添加衰减效果,以适中的音效
- 将音频设置为在用户未与对象互动时淡出或停止
- 允许用户手动关闭个别对象的音频
深度碰撞
始终考虑用户的空间。
当虚拟物体看起来与现实世界中的物体相交时,为了避免深度碰撞,请注意合理的房间大小和用户可以使用您的应用的各种环境。
提前设定预期,明确说明体验需要多少空间,从桌面到整个房间,再到世界级空间。

让用户了解您的体验需要多少空间
对象内部
尽管用户可以将手机置入虚拟世界的物体中,但这打破了您正在创作的现实场景并破坏了沉浸式的画质。出现这种情况时,应告知用户不应该出现在他们面前。
视觉提示可帮助用户避免这些意外碰撞。当您想要说出“你不应该在这里!”时,将物体内部模糊处理。

直观地告知用户他们刚移到了对象中
重置
允许用户根据需要重置体验。
让重置过程快速而轻松,让用户在完成操作后可以立即开始体验。
多人游戏体验
多人游戏体验可让不同用户共享相同的 AR 环境。某个用户设备上显示的对象会向所有用户显示。
- 玩家 1 检测到一个表面
- 玩家 2、3 和 4 通过靠近玩家 1 检测到同一表面
- 该应用可识别所有玩家并将他们联系起来!现在,所有人都可以共用相同的 AR 环境。
与单人体验相比,多人游戏体验可能需要更多掌控力。引导用户完成每一步。尝试尽可能顺畅地建立连接。

随着更多用户加入,请鼓励他们离第一位用户更近一点。孩子的设备连接速度会更快。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eSeamlessly transition users into and out of AR experiences using clear visual and audio cues, prioritizing user control whenever possible.\u003c/p\u003e\n"],["\u003cp\u003eEncourage exploration of the 360° AR environment with subtle visual and audio prompts, optimizing sound design for immersion and clarity.\u003c/p\u003e\n"],["\u003cp\u003eDesign AR experiences that are mindful of user spaces and potential depth collisions, setting expectations upfront about required space.\u003c/p\u003e\n"],["\u003cp\u003eProvide clear visual feedback to users if they move their device inside virtual objects, guiding them to maintain the intended immersive experience.\u003c/p\u003e\n"],["\u003cp\u003eOffer a simple and accessible reset function for users to quickly restart the AR experience if needed, and streamline multiplayer experiences for smooth shared interactions.\u003c/p\u003e\n"]]],[],null,["# Interaction (UX)\n\nInitialization\n--------------\n\n### Make a clear transition into AR\n\nUse visuals to let users know they're about to transition from a 2D screen into AR. You can dim the phone display or use effects to blur the screen when a transition is about to take place.\n\nIn some apps, only one part of the experience will take place in AR.\n\nTry to give the user a seamless transition to AR. Let the user launch the transition from a 2D interface to AR. It's less jarring when the user is in control.\n\nYou can include a button, such as an AR icon, to let users trigger the launch themselves.\n\nSend the user gently into your AR environment. Use an easy transition, like an animation or a fade out.\n\nOffscreen exploration\n---------------------\n\n### Use visual or audio cues to encourage offscreen exploration.\n\nVisual cues can nudge users to explore a more robust AR world around them. For example, have a bird fly off the screen until the user follows it. This movement can help direct the user to complete the intended goal.\n\nNudge users to explore offscreen spaces\n\nAudio exploration\n-----------------\n\n### Use audio cues to enhance the user's experience and encourage engagement.\n\nAudio encourages users to engage with the app and explore the 360 degree environment. Ensure that your audio adds to the experience rather than distracting from it.\n\nIf you're using audio for 3D objects or the 360 environment, be mindful of a few things:\n\n- Avoid playing sounds simultaneously\n- Add attenuation to moderate sound effects\n- Set the audio to fade or stop if user is not interacting with the object\n- Allow users to manually turn off the audio for individual objects\n\nDepth collisions\n----------------\n\n### Always consider your users' spaces.\n\nTo avoid depth collisions---when a virtual object appears to intersect a real-world object---be mindful of reasonable room sizes and the various environments in which users could use your app.\n\nSet expectations up front by clearly communicating how much space is needed for the experience, from a tabletop, to an entire room, to world-scale space.\n\nLet users know how much space your experience needs\n\nInside Object\n-------------\n\nEven though users can stick their phones inside objects in your virtual world, it breaks the reality you're creating and the immersive quality of the scene. When that happens, let users know they aren't supposed to be there.\n\nVisual cues can help users avoid these unintended collisions. Make an object blurry inside when you want to say, \"You're not supposed to be here!\"\n\nVisually communicate to users that they've just moved inside an object\n\nReset\n-----\n\n### Allow the user to reset the experience if they need to.\n\nMake the reset process quick and easy, and let users dive right back into the experience once it's taken care of.\n\nMultiplayer Experience\n----------------------\n\n### A multiplayer experience lets different users share the same AR environment. An object that appears on one user's device will appear to all users.\n\n- Player 1 detects a surface\n- Players 2, 3, and 4 detect the same surface by moving closer to Player 1\n- The app recognizes all the players and connects them! Everyone now shares the same AR environment.\n\nMultiplayer experiences can require more hand-holding than single-user journeys. Guide your users through each step. Try to make the moment of connection as seamless as possible.\n\nWhen more users join, encourage them to move closer to the first user. Their devices will connect faster."]]