Code Monkey home page Code Monkey logo

vruiinput's Introduction

VRUIInput

VRUIInput is a small set of scripts for Unity that allows your world space canvases to receive events from controller rays.

SteamVR is the only supported platform out of the box, but it should be easy enough to add support for other platforms.

Attention! This project will contain errors if you open it in unity. This is expected behaviour, please follow setup process described below:

Setup process:

  • Add SteamVR to your project and configure default actions. Don't add it to this project, it won't compile and you won't be able to configure SteamVR actions
  • Copy Assets/VRUIInput folder from this repository into your assets folder
  • (Optional) Test UI interactions in example scene located in VRUIInput/Example
  • Replace standalone input module on event system with vive input module
  • Replace graphic raycaster on every world canvas with vr graphic raycaster
  • Add camera from VR camera rig to canvases as event camera
  • Optionally add vr ui cursor prefabs to your scene, set id values to 0 and 1
  • If you are using unity dropdowns, add vr graphic raycaster to template object of every dropdown

This implementation supports every possible ui element, they don’t have to be flat, and rays don’t lag behind controllers.

This version is compatible with Unity 2018.3 and SteamVR 2.2.0. See tags for earlier versions of Unity and SteamVR 1.2.3.

vruiinput's People

Contributors

mmaletinwork avatar mmaletin avatar

Stargazers

Sergey Ivanov avatar  avatar Roman Hossain Shaon avatar Ajinkya Puar avatar Иван avatar

Watchers

James Cloos avatar  avatar

Forkers

wlly23

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.