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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Rendering Lines connecting Entities

Discussion in 'Graphics for ECS' started by Kugelblytz, Oct 26, 2023.

  1. Kugelblytz

    Kugelblytz

    Joined:
    May 1, 2021
    Posts:
    4
    I want to render thousand of lines, always connecting two different entities. I tried passing the positions to the normal line renderer but thats not an optimal solution and also renders lines inbetween entities which I would not like to render. So far I could not find an entity based solution to this or a thread explaining this in a way that works for me.
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,615
    You are better of using Unity Graphics API Render Mesh instancing (indirect), for better performance.

    It is not strictly related to DOTS. You can use it in any work flow.