Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Rendering runtime lights with ECS and HDRP

Discussion in 'Graphics for ECS' started by xytor500, Mar 6, 2023.

  1. xytor500


    Mar 29, 2017
    I currently use RenderMeshUtility to create runtime entities that are rendered with a mesh and a material.

    Is there anything similar for lights? I don't see an IComponentData for a light, so I'm not exactly sure how to create and update lights with ECS.
  2. JussiKnuuttila


    Unity Technologies

    Jun 7, 2019
    There is no native IComponentData for lights. However, it is possible to attach GameObject Light components to Entities using the AddComponentObject method in EntityManager or IBaker.