Thanks to this script, checks entity is visible to camera or not
But i am still looking for way to implement blue indicator within the screen space…
Anyone can help?
Edit:
My issue is solved…
Thanks to this as well…
https://forum.playcanvas.com/t/solved-how-to-get-top-vec3-point-and-bottom-vec3-point-of-users-screen/
Added added blue indicator as well by following way…
I added four entities as child in camera, According to Camera View Edge…
e.g. topPointEntity, rightPointEntity, bottomPointEntity, leftPointEntity
Get position of target then clamped it using topPointEntity, rightPointEntity, bottomPointEntity, leftPointEntity and then set it on blue indicator.
Which helped me to keep the blue indicator within screen space…