---
title: "module::debug::drawVector"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/module/debug/drawvector
---

# module::debug::drawVector

Draws a debug vector at the current element’s position.

## Declaration

```swift
void module::debug::drawVector(float3 vector, float scale, half4 color)
```

## Parameters

- `vector`: Direction of vector
- `scale`: Length of vector. Minimum is 0.01, which corresponds to 10cm.
- `color`: Color of line

## Discussion

Discussion Debug Lines are not enabled by default. You enable them in your editor or by setting LinkOptions/debugDraw to true when compiling your pipelines, and assigning a DebugLinesProvider to your ComputeGraphSimulation. note:
