- Home /
Use unity 5 to build responsive websites
Hi, Since the new Unity 5 is capable of building to WebGL, is it possible to build entire websites with it? Would it be possible to make them responsive? Would them work on mobile platforms?
Thank you!
Any updates on this since a year ago? I am really curious if it is possible and eventually transition websites into vr/ar compatibility.
Blend4Web is doing well in this area. They are more geared towards 3D websites. Here is a post on their forum about the subject: https://www.blend4web.com/en/forums/topic/2685/ Blend4web is an addon for Blender that basically turns Blender into an SD$$anonymous$$. It does not author to all platforms, just browser based.
Will
for responsive website, unity can't support mobile. the point of responsive layout is to make it one layout all platform. so no.
for web VR, there are other 3D HT$$anonymous$$L5 engine which supports mobile. I tried threeJS once. I think its good. They even have a VR example.
for web AR, the bottleneck is JS function getUser$$anonymous$$edia(), which is to grab the data from webcam but only supported in few browser for now. So no.
Thank you guys for inputting your knowledge. Saves me time assessing if I want to create a website through Unity or not. Thanks for the swift output.
Answer by Artwing · Mar 29, 2015 at 04:24 AM
WebGL support on mobile browsers is limited. But if you can make a game and post it online using WebGL, your game could be structured as a website instead. Unity is more optimized for games than websites but I believe there's a strong future in using Unity to build websites. Especially considering the demise of Flash has left a vacuum. I believe it gives us the potential to abandon HTML altogether and use only a fully interactive experience that works more like a program or an app rather than an HTML driven 2d website.
Answer by money4honey · Nov 14, 2016 at 10:18 PM
WebGL is not better way to present content in the web (it can be disabled by default on some devices), for building mobile friendly pages you can use bootsrap - a very simple library. for me, full WebGL site is not an option because googlebot can't parse it
Okay, apples and oranges. Bootstrap is a nice 2D interface Library. Webgl is 3D. It allows your browser to access your 3D Hardware acceleration.
I agree, if you want build very beautiful site, you can use heavyweight background videos, flash or WebGL, but in this case your site be not mobile friendly)
Easy to test. Point your mobile browser to williamwelker.com. Chrome or $$anonymous$$ozilla do well. While yo are there, try the lower left settings gear to see stereoscopic vr. I have always found it annoying when CSS based interfaces jerk your view around as they load while you're trying to read it on a mobile device.
okay, it looks great) but css load faster, you can hide loading container by default with css, and then show it again on page load using js
Answer by WarframeZeker · Nov 15, 2016 at 08:47 AM
Thank you for the info money4honey. I know bootstrap and I was just curious if Unity can be a medium creating websites responsively since it has capability creating browser games. VR and AR is becoming popular in the gaming realm and I feel like it will have a huge impact in the web too. Mozilla is creating a framework for that called A-frame, but that requires you to code all the angles of a polygon to show through the web. I was wondering if I can just model it in a modeling program like Maya or C4D and put it in Unity and publish through the web with HTML5 or webgl that process would be more time saving in my part. I do not really care about mobile friendly web pages for now since for one its going to be my portfolio website not actually in creating for clients and such.
Answer by sandstedt · Apr 02, 2019 at 11:32 AM
For future visitors: This is a terrible idea if you don't think of rebuilding everything the web stands for (like links, interaction with focus states, make it accessible, work for searchbots etc). So you will pretty much need to rebuild a browser inside your website. This is what we did back in the days with Flash. Don't repeat our stupid misstakes.
With that said. Why not, If you do it correctly :)
An a-frame has come a long way since 2016. So it's definitely worth a try.
Your answer
Follow this Question
Related Questions
Embedded HTML for Unity WebGL build 0 Answers
Make a Register/Login page using html and then use it to log into a Unity Game,Hi! 1 Answer
How do i build a game for webgl and display it in an html document? 1 Answer
Adding an html link to a webgl build. 0 Answers
Unity webgl or threejs or babylonjs ? Which one is the best for me? 1 Answer