---
title: "output::setOpacity"
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/output/setopacity
---

# output::setOpacity

Sets the opacity of the rendered output.

## Declaration

```swift
void output::setOpacity(half opacity)
```

## Parameters

- `opacity`: The opacity value (0.0 = fully transparent, 1.0 = fully opaque).

## Discussion

Discussion This function customizes the alpha component of the rendered particle output, controlling its transparency. This affects only the rendered appearance and does not modify the particle node itself. note:
