Search Unity

Question Animate uv speed smoothly during runtime

Discussion in 'Shader Graph' started by pixeleif, Sep 12, 2020.

  1. pixeleif

    pixeleif

    Joined:
    Feb 9, 2016
    Posts:
    17
    I'm trying to control the uv's for a shader using a slider controlled by the user.
    The user can adjust the flow of a material during runtime.
    But what i get is jerky movement when adjusting it. Does anyone know how to do it smoothly?

    Cheers

    Video:
     
    Last edited: Sep 12, 2020
  2. pixeleif

    pixeleif

    Joined:
    Feb 9, 2016
    Posts:
    17
    After more testing (and failing) I'm wondering if the issue is linked to the way it's mapped to the sphere....
    Any tips are greatly appreciatosedes!
     
  3. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Have you tried to adjust the speed via code, instead of changing the value in Inspector?
     
  4. PepukMan

    PepukMan

    Joined:
    May 15, 2020
    Posts:
    3
    did you solve this problem? Its not depends on the object.
     
  5. PepukMan

    PepukMan

    Joined:
    May 15, 2020
    Posts:
    3
    ok i found out how to change speed smoothly: just multiply your texture offset on Time.delta time in script, runtime, Not in shader Graph.