Search Unity

Scrolling textures in Timeline

Discussion in 'Timeline' started by Waterlane, Nov 28, 2017.

  1. Waterlane

    Waterlane

    Joined:
    Mar 13, 2015
    Posts:
    188
    Hi - I've a prefab, which contains meshes - some of these meshes have scrolling (script) textures on them.
    Everything works fine.
    When setting up Timeline and scrubbing/playing, the textures fail to animate.

    How can these textures show their animation, when playing via Timeline?
    (ie can this be done and how should timeline be set up)

    Cheers
    Dave
     
  2. dadude123

    dadude123

    Joined:
    Feb 26, 2014
    Posts:
    789
    I'm not sure, maybe timeline overrides `Time.time`
    Have you tried using Time.unscaledTime in the script that does the uv scrolling?
    If you're scrubbing on the time track then you should probably also use the time of the playable, not global time, right?
     
  3. Waterlane

    Waterlane

    Joined:
    Mar 13, 2015
    Posts:
    188
    Thanks for the suggestion dadude, unfortunately somethings happened which has stopped most of timeline from working in general [many of my clips no longer play when scrubbing timeline and I've noticed their animation play/record options are greyed out -but can't find how to set them working again].
    I've tried deleting things and muting/unmuting etc - no luck so far...