Forum Discussion
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?
Is crosshair obsolete in latest unity package update?
4 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionYou 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.
- jmorris142ExplorerAlso 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. - _Deleted_Us2025Honored GuestThis is an excellent tutorial that I found very helpful: https://www.youtube.com/watch?v=LLKYbwNnKDg
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 10 years ago
- 11 years ago