init
TypeScriptstatic init(): Promise<PointLight>Swift declaration@MainActor @preconcurrency required init()Creates a new entity.
class · iOS 13.0+ · SDK 27.1
@MainActor @preconcurrency class PointLightAn entity that produces an omnidirectional light for virtual objects. During an AR session, RealityKit automatically lights your virtual objects to match real-world lighting. You can also explicitly add virtual lights that act upon your virtual content. This is typically most useful outside of an AR session on iOS or macOS, where your ``RealityViewCameraContent`` ``RealityViewCameraContent/camera`` property is set to ``RealityViewCamera/virtual``. The point light is an omnidirectional light that illuminates all the virtual content within a configurable radius from the light. This is equivalent to creating an ``Entity``, and then adding a ``PointLightComponent`` to its ``Entity/components`` set. A RealityKit scene can contain up to eight dynamic lights, which are entities that contain a ``SpotLightComponent``, ``PointLightComponent``, or a ``DirectionalLightComponent``. This limit doesn’t include light from image-based lighting. Devices that support `MTLGPUFamily.apple6` or later lift this limit, so a scene can contain many more dynamic lights.
static init(): Promise<PointLight>Swift declaration@MainActor @preconcurrency required init()Creates a new entity.
No declarations were skipped in this snapshot.