How to use Color.lerp in Unity [ The Right Way !!! ]

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • How to smoothly transition between colors in unity!
    In this video, you'll learn how to program a smooth color transition in unity with in depth explanation.
    This is the first video of the channel, every single view, like, and subscribe is highly appreciated.

Комментарии • 18

  • @IrvingSoluble
    @IrvingSoluble 11 дней назад

    Thanks

  • @kobaltsteel6418
    @kobaltsteel6418 2 месяца назад

    Very helpful video! Thanks a lot!
    One problem though, wonder if anyone could help; I tried the script on a few 2D lights for my 2D game and, while the global light worked fine, the spot lights don't seem to be working, it's just not showing anything... any help on why?

  • @engameerr4061
    @engameerr4061 Год назад +1

    love it

  • @jestmaki
    @jestmaki 2 месяца назад

    Very helpful! Thank you!

  • @SwayamVaza-qr8vs
    @SwayamVaza-qr8vs 6 месяцев назад

    Thank you sir!

  • @mediamermaid333
    @mediamermaid333 Год назад +1

    Thank you!!

    • @GoldenDevs
      @GoldenDevs  8 месяцев назад

      Happy it was helpful 💛

  • @KryoFN
    @KryoFN Год назад

    Cool, this really helped me especially since I did not know about colour lerps

  • @Chuube
    @Chuube Год назад

    I think my unity is broken, when I drag a material it just changes the colour to dark grey, even when I haven’t even done anything to the material

    • @GoldenDevs
      @GoldenDevs  Год назад

      Usually the default color of a mat should be white, the problem could be with your lighting.
      But you know, it's unity, the engine just zones out sometimes, restarting the app usually helps.

    • @xian2themax
      @xian2themax 4 месяца назад

      Same thing happened to me, did you find a solution?

  • @sammyiscuul
    @sammyiscuul 8 месяцев назад

    So I tried this using text, but the text just disappears when I play. It changes the color, but it is hidden for some reason.

    • @GoldenDevs
      @GoldenDevs  8 месяцев назад

      I haven't tried that but it sounds odd, you can send me the code from discord, I'll take a look when I can.
      Thanks for watching the video💛

    • @snakeeyes7165
      @snakeeyes7165 2 месяца назад

      @@GoldenDevs This same thing is happening to me when trying to change this code for the color component of an image. Image is replaced with a grey, even though the color is changing in the inspector. Did we find a fix for it?

    • @snakeeyes7165
      @snakeeyes7165 2 месяца назад

      Found the fix. When you add colors to the array unity defaults to 0 for the alpha so set those to 255 in the inspector.

  • @LiveAndFilms
    @LiveAndFilms 8 месяцев назад

    Thank you! That was sooo soo helpful!