Embedding WebVR is useful if you want to use a custom domain or showcase the WebVR application on a homepage.
For this you can find a WebVR tab on 3. publish. Within this section you will see an Embedd Code. This can be copied and placed within an HTML web page.
The attributes “width” as well as “height” can be adjusted independently to cover your use case.
A sample HTML web page might look like this:
<!DOCTYPE html>
<html>
<head>
<title>WebVR-App</title>
</head>
<body style="width: 100vw; height: 100vh;">
<iframe
id="webvr-app"
allowvr="yes"
width="100%"
height="100%"
allowfullscreen="yes"
src="https://aframe.aframe.mob.fish">
</iframe>
<script>
// Scripts here
</script>
</body>
</html>
Post your comment on this topic.