One Logo Pool Ball
_RealityKit_ComputeGraph · IOS API REFERENCE

ComputeGraphViewpointComponent

struct · iOS 27.0+ · SDK 27.1

struct ComputeGraphViewpointComponent

A transient component that provides camera viewpoint information to the particle simulation. Attach this component to an entity to supply the simulation with an observer's position and direction. The simulation uses these values for view-dependent effects such as billboard orientation or camera-facing particles. Both properties are optional. When `nil`, the simulation falls back to its default viewpoint behavior.

Members (5)

get · iOS 27.0+

viewPosition

TypeScript
get viewPosition(): (SDKHandle) | null
Swift declaration
var viewPosition: SIMD3<Float>?

The position of the observer, in world space.

set · iOS 27.0+

viewPosition

TypeScript
set viewPosition(value: (SDKHandle) | null)
Swift declaration
var viewPosition: SIMD3<Float>?

The position of the observer, in world space.

get · iOS 27.0+

viewDirection

TypeScript
get viewDirection(): (SDKHandle) | null
Swift declaration
var viewDirection: SIMD3<Float>?

The direction the observer is facing, in world space.

set · iOS 27.0+

viewDirection

TypeScript
set viewDirection(value: (SDKHandle) | null)
Swift declaration
var viewDirection: SIMD3<Float>?

The direction the observer is facing, in world space.

init · iOS 27.0+

init

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

Skipped declarations

No declarations were skipped in this snapshot.

All _RealityKit_ComputeGraph types →