Search Unity

RenderMesh using Vector3 instead of a float3

Discussion in 'Graphics for ECS' started by TDCreationStudios, Apr 8, 2019.

  1. TDCreationStudios

    TDCreationStudios

    Joined:
    May 16, 2018
    Posts:
    18
    Hi there, recently picked up the rendering package for use within ECS, however, I notice two things. -
    1 - It doesn't implement IComponent data, and therefore, cannot be used normally within a system
    2 - It doesn't actually use float3 - which is a little unexpected. It sorta seems like a shoddy wrapper around UnityEngine.Mesh.

    Is this on purpose? Will this ever change?
     
  2. NoDumbQuestion

    NoDumbQuestion

    Joined:
    Nov 10, 2017
    Posts:
    186
    Yes. And it won't change.
    RenderMesh is SharedComponentData. It basically a pointer to MonoObject to work with ECS.
     
  3. Soaryn

    Soaryn

    Joined:
    Apr 17, 2015
    Posts:
    328
    More accurately: they haven't made the Graphics side of ECS just yet. So whilst RenderMesh likely won't change, there will likely be something to replace it with later.
     
    Antypodish and TDCreationStudios like this.
  4. TDCreationStudios

    TDCreationStudios

    Joined:
    May 16, 2018
    Posts:
    18
    Holy hell, a reply from Soaryn himself - even funnier as I ask about this for use in my voxel game project!

    Thank you for your reply :)