Debug.Log Extensions
Documentation (1.1.9)
|
|
static |
Draws a line from start to start + dir in world coordinates.
The duration parameter determines how long the line will be visible after the frame it is drawn. If duration is 0 (the default) then the line is rendered 1 frame.
If depthTest is set to true then the line will be obscured by other objects in the Scene that are nearer to the camera.
The line will be drawn in the Scene view of the editor. If gizmo drawing is enabled in the game view, the line will also be drawn there.
start | Point in world space where the ray should start. |
dir | Direction and length of the ray. |
color | Color of the drawn line. |
duration | How long the line will be visible for (in seconds). |
depthTest | Should the line be obscured by other objects closer to the camera? |