One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

HasSpotLight

protocol · iOS 13.0+ · SDK 27.1

@MainActor @preconcurrency protocol HasSpotLight : HasTransform

An interface that defines a spot light source component.

Members (4)

get · iOS 13.0+

light

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

A spotlight component for the entity.

set · iOS 13.0+

light

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

A spotlight component for the entity.

get · iOS 13.0+

shadow

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

The shadow for the spotlight. Set this property to `nil` to remove shadows for the light. Set it to an instance of ``SpotLightComponent/Shadow`` to create shadows.

set · iOS 13.0+

shadow

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

The shadow for the spotlight. Set this property to `nil` to remove shadows for the light. Set it to an instance of ``SpotLightComponent/Shadow`` to create shadows.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →