0

If this is possible, can I change the size of the aframe canvas in code?

I would like to display a form so that users can modify object parameters in the aframe scene.

dlgard
  • 17
  • 1
  • 4
  • Share your code – Sauced Apples Sep 29 '16 at 13:29
  • The docs are currently out of date. You can try using an iframe or adding the `embedded` component to your scene. I've filed an [issue on GitHub](https://github.com/aframevr/aframe/issues/1949) to determine the recommended approach, as well. – Don McCurdy Sep 29 '16 at 17:02

1 Answers1

4

See this question. How to remove fullscreen styles in A-Frame, reduce canvas size, or scroll a page with A-Frame scene?

You can use the embedded component to remove fullscreen styles and make it embeddable within a web page. https://aframe.io/docs/1.1.0/components/embedded.html

<a-scene embedded> 
  <!-- scene stuff -->
</a-scene>

Then you are free the style <a-scene> how you wish

a-scene { display: block; width: 50%; }
Gabriel Grant
  • 5,415
  • 2
  • 32
  • 40
ngokevin
  • 12,980
  • 2
  • 38
  • 84