Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

[Timeline] Object disappear in play mode //but still appear in timeline preview

Discussion in 'Timeline' started by vannav, Feb 15, 2018.

  1. vannav

    vannav

    Joined:
    Jan 29, 2017
    Posts:
    6
    I found that my Timeline is working completely while watched in Preview.
    But when I try to play timeline in Play mode, My Object Just disappear !!



    //This time I found that my object go to the middle place of animation. It just warp to the side rock in middle way
    https://imgur.com/a/YqNbd

    (Sometimes my object still appear in the scene but its animation didn't work)

    Please help! Thank you TT
    // Sorry for bad grammar
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Try removing any controllers from the animator of the object that is disappearing.
     
  3. vannav

    vannav

    Joined:
    Jan 29, 2017
    Posts:
    6
    Nothing happened. This time I removed the controller of the animator of the rock and set the animator to newState as default. It doesn't work TT || Clip >> https://goo.gl/wq3VKi (The inspector tab and animator are the rock's)
     
  4. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Does the rock have the static flag checked?
     
  5. vannav

    vannav

    Joined:
    Jan 29, 2017
    Posts:
    6
    Yes, it have. (The rock is from Rock & Boulders Assets)
     
  6. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    That explains it. Uncheck that flag.
     
  7. vannav

    vannav

    Joined:
    Jan 29, 2017
    Posts:
    6
    IT WORKKKKKKKKKSSSSSS !!!!! Thank you so muchhhhhhhhhh !!! :):):)
     
    seant_unity likes this.
  8. JincomVR

    JincomVR

    Joined:
    Sep 15, 2018
    Posts:
    1
    I am getting the same error but i have unchecked everything that might be static. As soon as I start game play all of my clips in the timeline disappear. It wipes out my activation tracks as well. Very frustrating. I have Alembic files and FBX's on the timeline. Scrubbing backwards and forwards is perfect. No issues, But as soon as I go into play mode or try using Unity Recorder, the same thing happens.
     
  9. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    It wipes out activation tracks and clips!?! That is very strange - can you post a video or provide more information? I can't think of anything off hand that might cause that.
     
  10. RichardCulver

    RichardCulver

    Joined:
    Nov 19, 2013
    Posts:
    6
    Similar Issue.

    Scrubbing/Playing is OK. Playing the game to record, objects disappear.

     
  11. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    What is the track offset mode off the animation tracks? From the video that appears they are playing in a different position, I see no obvious reason why the timeline would disable them.

    Make sure the Animation Tracks are set to Apply Transform Offsets.
     
  12. RichardCulver

    RichardCulver

    Joined:
    Nov 19, 2013
    Posts:
    6
    They are.

    What seemed to to be the issue was in fact that I had manipulated the track clip lengths and moved
    them. I would think this would not be an issue. But I solved it by simply expanding the clips gain and moving everything back to the start and playing the whole timeline and then just rendering the segment I wanted. Which is not the best workflow.

    So I am going to call this a bug without any other information.
     
  13. cineartistpro

    cineartistpro

    Joined:
    Aug 20, 2019
    Posts:
    4
    To add additional information. This is still happening and it is completely random. Sometimes the objects show up. Next time I render they are gone. Other times they show up at various places at random. I mean will be gone and then pop in. But it is not consistent from time to time that I play the game.

    Pretty much rendering this tool useless for serious work in its current state.
     
  14. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Is there anything else that can affect those objects in the scene? Do the objects in question have animator controllers, or are they controlled by more than one timeline? Is there another script affecting them?

    Timeline's Editor preview is selective about what it controls. It sounds like what you are seeing is contention for control of the animated object at runtime, since it only happens in playmode.

    The first thing that springs to mind is two timelines playing on the same object. When animating, timeline has priority over the animator controller, but two timelines animating the same object is gives priority to the most recently started. Two timelines starting the same frame, where their order of initialization changes would explain that behaviour.

    If that's not it and you are still convinced it's a bug, open a bug using the bug reporter. We've dealt with a lot of questions, bugs, and issues related to starting position but I haven't seen this exact case before.
     
  15. cineartistpro

    cineartistpro

    Joined:
    Aug 20, 2019
    Posts:
    4
    Sorry, I am not getting any notifications for this.

    And by the way this happens all the time even without the timeline. I don't know what information to give you. Add an animator, add the animation clip, press play. The object goes away and shows up many frames later. It is not consistent. And I have seen it on more than one graphics card and system. But it happens.

    In this particular case the thing that is the bug I have determined is it only seems to happen when the clip does not start at the beginning of the timeline. And it is not with all object just with mainly this train.So it must be something in the way it is rigged that is triggering this bug. Unfortunately I can give up the project as it is protected by the client.
     
  16. cineartistpro

    cineartistpro

    Joined:
    Aug 20, 2019
    Posts:
    4
    Another update:

    In this example I show how navigating randomly in the scene view will make the object pop into back view.

    If I don't navigate the object remains hidden. If I navigate, it will appear at some random time.

    The only way to render a scene in this case is to move the recorder track and all of the animation I want to record far enough down the timeline for me to try to get the objects to appear.
     
  17. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Ah, what is the culling mode on the animator set to? If it's not, try it on always animate.
     
    namespace89 likes this.
  18. cineartistpro

    cineartistpro

    Joined:
    Aug 20, 2019
    Posts:
    4
    OK. Cool. First few tests are positive with "Always Animate". I will let you know if anything changes.

    Thanks!
     
  19. CaptianKost

    CaptianKost

    Joined:
    Dec 10, 2020
    Posts:
    1
    Hi im making a 2D game and when I add animations in the game view my object disappears
    how do I fix this?