Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在设置 React VR 时,你会得到一个包含已经自定义的全屏按钮和一个用于拉直相机的按钮的捆绑包,它没有名称和自定义选项:
我在 client.js 中更改了相机旋转原理,现在按钮无法正常工作。
这是一种黑客行为,但......
一旦应用程序启动,它就会被注入,此时我知道没有 API 可以自定义它,但好消息是它是 DOM。您可以在页面中添加一些 CSS 以禁用它或重新设置样式(假设您的页面上没有其他 SVG)。
svg { display: none }