<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ComputeGraphComponent/setOutputEnabled(_:enabled:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "ComputeGraph",
      "_RealityKit_ComputeGraph"
    ],
    "preciseIdentifier" : "s:24_RealityKit_ComputeGraph0cD9ComponentV16setOutputEnabled_7enabledySi_SbtF"
  },
  "title" : "setOutputEnabled(_:enabled:)"
}
-->

# setOutputEnabled(_:enabled:)

Sets the enable state of an output identified by ID

```
mutating func setOutputEnabled(_ outputID: ComputeNodeGraph.NodeID, enabled: Bool)
```

## Discussion

This will cause the output mesh to disappear, and output stages to stop executing.
The simulation, however, will continue to execute. See [`pause()`](/documentation/RealityKit/ComputeGraphComponent/pause()), [`play()`](/documentation/RealityKit/ComputeGraphComponent/play()),
and `RealityKit.Entity.isEnabled` to control the simulation as a whole

---

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)