One Logo Pool Ball
_RealityKit_ComputeGraph · IOS API REFERENCE

ComputeGraphSharedUniforms

class · iOS 27.0+ · SDK 27.1

class ComputeGraphSharedUniforms

A transient component that stores typed uniform values shared across all ComputeGraph simulations. You add scene-wide uniforms via a `ComputeGraphSharedUniforms` — such as gravity, wind, attractor locations, or a global time offset. - Note: Only one instance of this component should exist in a scene at a time.

Members (1)

init · iOS 27.0+

init

TypeScript
static init(): ComputeGraphSharedUniforms
Swift declaration
init()

Creates an empty `ComputeGraphSharedUniforms` component.

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ComputeGraphSharedUniforms.setUniform(_:)

This declaration needs Swift generic type arguments. (no canonical witness for V)

ComputeGraphSharedUniforms.uniform(_:)

Passing a Swift type itself is not supported.

ComputeGraphSharedUniforms.setUniformTransform(_:)

This declaration needs Swift generic type arguments. (no canonical witness for V)

ComputeGraphSharedUniforms.setUniformTransform(type:transform:)

Passing a Swift type itself is not supported.

All _RealityKit_ComputeGraph types →