<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ComputeGraphSimulation/setOutputEnabled(_:enabled:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Compute Graph",
      "ComputeGraph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0aB10SimulationC16setOutputEnabled_7enabledySi_SbtF"
  },
  "title" : "setOutputEnabled(_:enabled:)"
}
-->

# setOutputEnabled(_:enabled:)

Enables or disables execution of the provided output stage, without
disabling the system it represents.

```
final func setOutputEnabled(_ outputID: Int, enabled: Bool)
```

## Parameters

`outputID`

The node identifier of the output to enable or disable.

`enabled`

`true` to simulate the output; `false` to omit it.

## Discussion

Disabling an output is useful when you want to switch between multiple outputs
for the simulation, for example two outputs with different topologies for the
same elements.

---

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)