Mikayel Saghyan
Mikayel Saghyan

Reputation: 738

React VR camera straightening control customization

When setting up React VR you get a bundle with already customized full screen button and a button for straightening up camera, which has no name and no customization options:

Camera straightening control

I have changed the camera rotation principle in client.js and now the button is not working correctly.

  1. How is that button called?
  2. Is there an API for it to customize it?
  3. Is there a way to disable it?

Upvotes: 0

Views: 110

Answers (1)

cidicles
cidicles

Reputation: 351

This is kind of a hack but...

That is injected once the app inits and at this time I know of no API to customize it but the good news is it is DOM. You could add some CSS to your page to disable it or restyle it (assuming you have no other SVGs on your page).

svg { display: none }

Upvotes: 1

Related Questions