- Home /
Gizmos at RunTime
Hi.
I'm working on a space project and I've been trying to do something similar to Gizmos without any success.
For those of you that know the game "Eve Online", what I want is to draw a simple bitmap on screen (like a gizmo) that allows the player to click and select distant objects like a distant Asteroid Field.
The Gizmos approach works exactly as intended, drawing always the same size no matter if the object is distant or close, but I can't seem to use the Gizmo functionality on a production build.
Is there any way, workaround or alternative you guys know of?
Thank you.
Answer by TonyLi · Feb 26, 2014 at 07:58 PM
If you need it the same size regardless of distance or angle, treat it like a GUI element. Use an orthographic camera, and use Camera.WorldToScreenPoint() to position it over the object.
Hello Tony.
Thank you for the reply but I'm not sure I understand how to implement that. Would it be possible for you to provide a little bit more info? I'm using Playmaker, is that something I can do without scripting, just using Playmaker ?
Thank you.
Your answer
Follow this Question
Related Questions
Controlling OnDrawGizmo 1 Answer
Gizmos not working on Unity 5.0.1p1 0 Answers
Drawing A 2D Capsule (Same of CapsuleCollider2D) 2 Answers
How to draw a Sprite on OnDrawGizmos() 0 Answers
Creating editable primitive shapes in edit-mode in scene view 0 Answers