If you're using "Debug.DrawRay" the raycast will only appear in the scene view. If you want to see it in your game you'll need to use a line renderer or something similar. If you're still not seeing it in the scene view, ensure that the range for the drawray matches the range of your actual raycast.