One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

HasDirectionalLight

protocol · iOS 13.0+ · SDK 27.1

@MainActor @preconcurrency protocol HasDirectionalLight : HasTransform

An interface that defines a directional light source component.

Members (4)

get · iOS 13.0+

light

Swift declaration
@MainActor @preconcurrency var light: DirectionalLightComponent { get set }

A directional light component for the entity.

set · iOS 13.0+

light

Swift declaration
@MainActor @preconcurrency var light: DirectionalLightComponent { get set }

A directional light component for the entity.

get · iOS 13.0+

shadow

Swift declaration
@MainActor @preconcurrency var shadow: DirectionalLightComponent.Shadow? { get set }

The shadow settings for a directional light. Set this value to `nil` to remove shadows.

set · iOS 13.0+

shadow

Swift declaration
@MainActor @preconcurrency var shadow: DirectionalLightComponent.Shadow? { get set }

The shadow settings for a directional light. Set this value to `nil` to remove shadows.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →