Unity Shader Graph - How to Update Shaders in Code

preview_player
Показать описание
Let's learn how to access and change Unity Shader Graph values in code!

~ Contact ~
📷 Instagram: @rigor_mortis_tortoise
⏱️TikTok: Rigor_MortisTortoise

~ Chapters ~
0:00 Introduction
0:18 Recap
0:35 The Logic Behind This
0:50 Grabbing the Property & Reference
1:13 What not to do
1:36 Introducing...LERP!
2:00 Let's talk about time
2:38 The code!
2:50 How to create a Coroutine
5:34 How to Call the Coroutine
6:04 The lerp works
6:17 Lerping Colors - Shader Graph
6:38 Updating the Colors in Code
Рекомендации по теме
Комментарии
Автор

You have the most elegant and simple description of a yield within a coroutine that I have ever heard. I've been using yields/returns for over a decade, while never truly understanding how they work outside of the update method. Everyone has such a long winded explanation of when and how to use them. Your simple explanation is by far the best I have ever heard. Thanks for that haha.

GeeCeeAte
Автор

I was trying to make a "shield" effect for my game and this is just what i needed. Thanks for explaining how to actually change shaders inside the scrpit!

thaylanoliscovicz
Автор

Hey, thank you for you explanation, don't stop to create that's videos, they are so great. I have been learning much with your videos :)

dayvsondossantossilva
Автор

Very well explained. Cool, J'aime bien :)

swingdes
Автор

At 5:48, can you provide an explanation why the underscore is necessary when referencing the DissolveStrength float created in the previous video? Without the underscore, the dissolve effect will not work. I think that's an important detail that you should mention.

thomasvandermolen
Автор

I'm relatively new to Unity and want to know if there's a way to trigger the dissolve animation on player collision. Basically I want a player to walk towards an object and have the object dissolve out of the scene. Do I just replace the if (Input.GetKeyDown) statement to an OnTriggerEnter (Collider)?

carlosvalencia
Автор

Hi Holly, do you have any C# classes online that I could follow, I like the vocal delivery of your tutorials, they're very detailed and would love a chance to learn C# from you.

mikethemusicman
welcome to shbcf.ru