Search Unity

General-purpose VR Crosshair Using Unity 4.6 UI

Discussion in 'Immediate Mode GUI (IMGUI)' started by Wenzil, Nov 3, 2014.

  1. Wenzil

    Wenzil

    Joined:
    Apr 3, 2013
    Posts:
    19
    I want to make a VR enabled crosshair and open source it to the Unity and Oculus community. My goal is to reach the level of quality and polish of the crosshair implementation from the game Time Rifters. I was wondering if anyone who has worked on something similar have any tips, gotchas or code snippets to share?

    I created a Github repo and I intend to start working on this project later tonight. Anyone who's interested in working on this is very welcome. I'd like this to be a group effort so that it can benefit more VR developers more quickly!

    Some more details about what I want to accomplish:
    • The crosshair should be able to interact any uGUI element or gameobject in the scene through raycasting
    • The crosshair image should be appear at the depth of the object it is pointing at
    • Eventually I want to support a handful of control schemes like head aim, keyhole, decouple pitch, etc.
    • Mouse and eventually gamepad support
    There's a little bit more info on the Github repo: https://github.com/Wenzil/UnityVRCrosshair