Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Viewing animated objects in scene editor?

Discussion in 'Entity Component System' started by timothy_j, Jun 19, 2020.

  1. timothy_j

    timothy_j

    Joined:
    Apr 11, 2020
    Posts:
    12
    I'm playing around with DOTS animation and have at last managed to get my own animation clip to play! However, using a shader such as the one shown in this post means the model no longer renders in the scene window. I'm using URP but it looks like the same thing happens in the official HDRP samples - the model is only visible when you play it.

    As I write, I'm getting more confused since looking at the MyFirstAnimationClip sample, sometimes the model appears in scene, sometimes not, but I can't work out what turns visibility on or off. I'm only changing the Render Bones option (which works as expected when run) but it looks like it might be whether I edit it via the prefab, subscene or main subscene. Weird.

    Anyone else having this issue? Am I using the wrong approach somehow, or is there a workaround for this?
     
  2. timothy_j

    timothy_j

    Joined:
    Apr 11, 2020
    Posts:
    12
    Turns out using the DOTS SubScene component rather than just the game object Sub Scene solves the problem in my project! :rolleyes: I was wondering why all my entities still needed conversion scripts!

    Still doesn't explain the animation sample behaviour though...