Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Property Blocks for Instanced Material Component

Discussion in 'Entity Component System' started by Soaryn, Mar 22, 2018.

  1. Soaryn

    Soaryn

    Joined:
    Apr 17, 2015
    Posts:
    328
    For GameObjects, I would use a material property block to modify the color or other properties of a shader. Would the same concept apply to the ECS with the MeshInstancedRenderer or is it currently an all or nothing renderer at the moment.

    For instance, if I wanted to change the color of the object based on the data of the Entity, say its speed, what would be the recommended way of approaching that?
     
  2. mike_acton

    mike_acton

    Unity Technologies

    Joined:
    Nov 21, 2017
    Posts:
    110
    What’s there with MeshInstancedRenderer at the moment is basically placeholder. Graphics api still to come.
     
    Mr-Mechanical, meanmonkey and Djayp like this.
  3. Soaryn

    Soaryn

    Joined:
    Apr 17, 2015
    Posts:
    328
    Aahhhh fair enough. I assume it is still a ways out then?
     
  4. meanmonkey

    meanmonkey

    Joined:
    Nov 13, 2014
    Posts:
    148
    I would like to see property blocks to send object-wise data to my shader too, soon. :)