Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Convert Spriterenderer To Ecs

Discussion in 'Graphics for ECS' started by TommyX12, Apr 11, 2019.

  1. TommyX12

    TommyX12

    Joined:
    Nov 19, 2016
    Posts:
    8
    Hi,

    I am playing around with ECS and trying to use the official samples on a 2D project.
    However, it seems that GameObject with SpriteRenderer cannot get converted using the ConvertToEntity script (i.e. does not appear after conversion).

    What should I do to get 2D functionalities?

    Thank you.
     
    D_Abdullah likes this.
  2. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    Just keep the gameobject of the entity.
     
  3. TommyX12

    TommyX12

    Joined:
    Nov 19, 2016
    Posts:
    8
    Thanks for your reply. Do you mean selecting "Convert and Inject GameObject" as conversion mode? How would this workflow work? Specifically, how would I modify the game object that gets injected? It doesn't seem to move.
    Thanks!
     
  4. D_Abdullah

    D_Abdullah

    Joined:
    Sep 8, 2019
    Posts:
    1
    Hi..i have the same issue
    Did you find a solution for that?