• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by skyyguy · May 14, 2016 at 07:39 AM · vrwebplayer

Can't Build for web with VR/Cardboard SDK? No key controls?

I am attempting to deploy my VR app developed with Google Cardboard to the web; this game works well in the editor and in iOS however when I build for web all user controls are disabled (the user cannot move or look around using keys or mouse).

I learned from this: http://stackoverflow.com/questions/37152101/unity-cant-move-when-deploying-google-cardboard-vr-app-as-standalone-web/37152187#37152187 that I need to create a new device for Cardboard SDK to support web build. I did this as the link instructed by including

   #elif UNITY_WEBPLAYER
               device = new CardboardWebplayerDevice();

in BaseVRDevice.cs and copying the user controls from UnityEditorDevice.cs into this script. The CardboardWebplayerDevice script is now essentially identical to UnityEditorDevice. When I try to build for web however I get the following errors BRIEFLY then the errors disappear. I'm new to Unity and can't understand why this is happening - how have others built Cardboard VR apps for web?

What am I doing wrong?

Errors:

alt text

screen-shot-2016-05-14-at-123746-am.png (138.3 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

56 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Different webplayer behaviour on safari on mac 2 Answers

Is there a workaround to display Ad Network video content triggered by Unity? 0 Answers

Sluggish Controls in FPS Scene. 1 Answer

GetUnity() on webplayer not working properly 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges