Search Unity

Trying to use MeshInstanceRenderer but nothing is rendering. What could be going wrong? [RESOLVED]

Discussion in 'Graphics for ECS' started by Mr-Mechanical, Nov 12, 2018.

  1. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    I am using pure ECS. I currently have an Entity with a shared MeshInstanceRenderer, a Position component, and a few other unrelated gameplay components. Though I can't find the rendered mesh at the specified position. Is there something else required for rendering? I have been investigating this problem for a while and I am perplexed to what is going on. Perhaps I am improperly populating the MeshInstanceRenderer struct, but I've compared my code with the samples. I am not sure. What do you guys think?
     
    Last edited: Nov 12, 2018
  2. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    Resolved. Don't redefine the Position component since it is already defined.
     
    Last edited: Nov 12, 2018
  3. Trindenberg

    Trindenberg

    Joined:
    Dec 3, 2017
    Posts:
    396
    Hey Mr M I was having a problem where they weren't showing if I build to IL2CPP, do you think it's related?