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. Dismiss Notice

Decal animation?

Discussion in 'High Definition Render Pipeline' started by alexandre-fiset, Mar 4, 2020.

  1. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    702
    I am trying to animate a (tiled) decal to simulate the cracking of a floor.

    It looks like the Fade Factor, Size, Tiling and Offset cannot be animated at runtime, is that right?

    At the moment nothing updates when I do so.
     
  2. dragon_slumber

    dragon_slumber

    Joined:
    Jun 11, 2017
    Posts:
    26
    If you're trying to do it through code, I change the decal.uvScale and fadeFactor in my code at runtime and it works fine.
     
  3. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    702
    Probably going to do that but I find it odd that it doesn't work through the animation. To animate, I'll have to expose some public variables in the inspector that are directly bound to the projector component, and then animate that... :eek:
     
  4. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,106