Jump to content

detachControl of undefined with CameraVR


Dad72
 Share

Recommended Posts

The error I'm getting is Line 12:44 - Cannot read property 'detachControl' of undefined for the line 

12 camera.inputs.attached.VRDeviceOrientation.detachControl(canvas);

It seems to be due to the object camera.inputs.attached not having a property VRDeviceOrientation .

Instead of: camera.inputs.attached.VRDeviceOrientation
you can try using: camera.inputs.attached.deviceOrientation

That seems to make the error go away. Does this solution work for you?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...