当前位置: 首页 > 文档资料 > A-Frame 中文文档 >

<a-cursor>

优质
小牛编辑
115浏览
2023-12-01

The cursor primitive is a reticle that allows for clicking and basic interactivity with a scene on devices that do not have a hand controller. The default appearance is a ring geometry. The cursor is usually placed as a child of the camera.

Read the cursor component documentation for detailed information about how the cursor works and how to use the cursor.

Example

<a-scene>  <a-camera>    <a-cursor></a-cursor>  </a-camera>  <a-box></a-box></a-scene>

Attributes

AttributeComponent MappingDefault Value
fusecursor.fusefalse
fuse-timeoutcursor.fuseTimeout1500
max-distancecursor.maxDistance1000