Skip to main content
Up and Coming
June 24, 2015

How to enable default crosshair? [Unity 5.1.1] [0.6.0.0]

Hi, I was just curious how to enable standard crosshair? Every guide and post I see just doesn't work on 0.6.0.0.
Is crosshair obsolete in latest unity package update?
    This topic has been closed for replies.

    4 replies

    Inspiring
    June 24, 2015
    You can create a floating quad as a crosshair. You should also have a raycast done so that the quad is always slightly above the object it is pointing at. I can work with the team to get an example of this but I can't imagine it would be too hard to rig together.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    June 24, 2015
    Also if it's just for a basic visual, I made one to be anything you like by creating an empty game object, align to camera, make child of camera and then move forward. Then made the quad with texture/material you like and align with game object. Use a smooth follow script to follow that game object with 1 axis locked. From there you can tweak the follow settings to give you a lazy smooth follow if you like or hard snap, scale in out, fade and so on.
    j.j. morris - tekrok - https://share.oculus.com/app/tekrok
    kirkokuevAuthor
    Up and Coming
    June 26, 2015
    Yes, thanks for your answers. Seems like I should take the path of making my own crosshair.
    I was just curious why this is stopped working in latest versions of Unity OVR assets
    // On init
    Crosshair.Init();
    Crosshair.SetCrosshairTexture(ref CrosshairImage);
    Crosshair.SetOVRCameraController (ref CameraController);
    Crosshair.SetOVRPlayerController(ref PlayerController);

    //From Update:
    Crosshair.UpdateCrosshair();
    //From OnGUI:
    Crosshair.OnGUICrosshair()


    because that would be so much easier for a basic crosshair.
    Up and Coming
    June 28, 2015
    This is an excellent tutorial that I found very helpful: https://www.youtube.com/watch?v=LLKYbwNnKDg
    Lupus, lone developer at Lupus Solus. Currently working on Push For Emor. http://www.indiedb.com/games/push-for-emor http://www.twitter.com/pushforemor