DebugRay doesn't display any lines

Hi community,

I am new to Unity and I am trying to get Debug.DrawRay to work yet nothing is drawing. I reviewed some of the answers here however it seems that nothing works. Please note that I am verified the Update function of this script is being called.

void Update () 
  Vector3 fwd = transform.TransformDirection(Vector3.forward) * 100;
  Debug.DrawRay(transform.position, fwd,,  4.0f);

Just tested it out and it is being drawed, are you using the 2D world view? Try changing to 3D and you’ll probably see the red ray. If not, did you assign the script to a game object?

You Can Continue use 2D world view but this no impact you work