Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
kirkokuev's avatar
10 years ago

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?

4 Replies

Replies have been turned off for this discussion
  • 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.
  • 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.
  • 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.