<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/module/debug/drawLine",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "module::debug::drawLine"
  },
  "title" : "module::debug::drawLine"
}
-->

# module::debug::drawLine

Draws a debug line

```
void module::debug::drawLine(float3 from, float3 to, half4 color)
```

## Parameters

`from`

start of line

`to`

end of line

`color`

color of line

## 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.

> Visual: ![Graph](module__debug__drawLine)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)