Search Unity

Miss mesh and material,when i creat entities !

Discussion in 'Entity Component System' started by wangyucheng1992, Apr 16, 2019.

  1. wangyucheng1992

    wangyucheng1992

    Joined:
    Feb 19, 2019
    Posts:
    59
    upload_2019-4-16_17-15-24.png upload_2019-4-16_17-17-25.png

    Version: 0.0.12-preview.27 unity 2018.3

    when i creat some entities,their mesh and material can not be find,I find it lose a compontent (MeshInstanceRenderer) but i can`t find this component in this version [0.0.12-preview.27] ,Who can help me solve this problem, Do I need to write a component like this? but i don`t know how to write. thank you !
     
  2. kork

    kork

    Joined:
    Jul 14, 2009
    Posts:
    280
    MeshInstanceRenderer has been renamed to RenderMesh. In addition Position is now Translation, so you may want to update this as well.
     
  3. wangyucheng1992

    wangyucheng1992

    Joined:
    Feb 19, 2019
    Posts:
    59
    upload_2019-4-16_18-0-52.png

    there are no RenderMesh component !
     
  4. kork

    kork

    Joined:
    Jul 14, 2009
    Posts:
    280
    The RenderMesh component is an ECS component, not a MonoBehaviour. I understood you got an error message about missing a MeshInstanceRenderer class, hence I said it has been renamed. So what is the actual error you see?
     
  5. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,759
    Please read the convert to entity post and documentation on how to handle this stuff now.
     
  6. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    You need the Hybrid Renderer package
     
  7. wangyucheng1992

    wangyucheng1992

    Joined:
    Feb 19, 2019
    Posts:
    59
    thank you ! It turned out that you were right.