Quantcast
Channel: Questions in topic: "behind"
Viewing all articles
Browse latest Browse all 97

GUI behind Camera - WorldToScreenPoint

$
0
0
Hey there, I'm having a rather pesky problem and I just can't figure out how to fix it: I'm drawing labels 'over' objects in 3D Space using GUI.Box and camera.WorldToScreenPoint(object.transform.position). This works perfectly fine - the labels appear on top of the objects and everything is fine. However, here comes the problem: When I 'turn my back' to the object, i.e. if the camera isn't looking at it anymore, the Label/the GUI.Box still appears on the camera. I know this happens because GUIs can't really be drawn in 3D Space and they are a special layer on top of the camera, but I can't figure out how to fix it. Any ideas? -Chelmney

Viewing all articles
Browse latest Browse all 97

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>