Question by 
               mynameisjun · Dec 13, 2017 at 01:36 AM · 
                raycastdebug  
              
 
              Debug.DrawRay isn't working at all
hey mates
I can't get Debug.DrawRay to work. this is my code, very simple.
 void Update () {
         
         Debug.DrawRay(firePos.position, firePos.forward*100.0f, Color.green);
 
         if (Input.GetMouseButtonDown(0))
         {
             Fire();
         }
     }
and this is the current gizmo in my editor 
i hope that i am just missing something obvious cheers
oh i just found the ray on scene while playing. is it supposed to appear while only playing???
 
                 
                untitled.png 
                (46.3 kB) 
               
 
              
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by theterrificjd · Dec 13, 2017 at 10:04 AM
In your Game View panel, you need to check Gizmos in the top right. They are disabled in game mode by default (similar to where you screenshot, but that's for the Scene view side, where gizmos are always enabled by default).
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                