Shader Graph and C# Interaction! Set Properties from Scripts! ✔️ 2020.3 | Unity Game Dev Tutorial @NedMakesGames
Shader Graph and C# Interaction! Set Properties from Scripts! ✔️ 2020.3 | Unity Game Dev Tutorial  @NedMakesGames
Uploaded January 2021 | Updated September 2026, 3 weeks ago
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3

Oftentimes, it's useful to set shader properties from a C# script. In this video, I show how to set property values on a shader created in the URP shader graph. In the process, I create a system that draws colored ripples wherever you click on a mesh.

👋 Subscribe for weekly game development videos!
youtube.com/c/nedmakesgames?sub_confirmation=1

👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files!
► patreon.com/nedmakesgames

🔗 Check out my website for a searchable list of tutorials!
► nedmakesgames.github.io

🔴 Twitch ► twitch.tv/nedmakesgames
🐦 Twitter ► twitter.com/nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► instagram.com/nedmakesgames
👽 Reddit ► reddit.com/u/nedmakesgames
🎶 TikTok ► tiktok.com/@nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames

💬 Video transcript
► docs.google.com/document/d/1X2L8IxQ4EEqKgnRtrF0jI4_MH_G7U8bNkPce_LchiZw/edit?usp=sharing

📚 Reference scripts
► Initial script: gist.github.com/NedMakesGames/261a7b0a462c4090e744cf4ff7ef8ea3
► Random colors: gist.github.com/NedMakesGames/7c9a64b7920559b92cac4c8c7d7c58f5
► Copied material: gist.github.com/NedMakesGames/3915393771ecf65b26fc2a9693056bde
► Property IDs: gist.github.com/NedMakesGames/07bf7599e0a8867c01646fc180de5e67

⏲️ Timestamps:
0:00 Intro
0:57 Project setup
1:47 The graph
3:40 The initial script
5:04 Randomizing colors
5:58 Instantiate material
6:33 Optimizations
7:35 Wrap up and credits

🎖️ Credits and references:
• James Opie AKA Nihilore: music "Oblivious" - youtube.com/watch?v=rjWb_WwY2cA
• Unity Technologies: Let's Try: Shooting with Raycasts - learn.unity.com/tutorial/let-s-try-shooting-with-raycasts#5c7f8528edbc2a002053b469

#GameDev #IndieDev #Unity
Shader Graph and C# Interaction! Set Properties from Scripts! ✔️ 2020.3 | Unity Game Dev TutorialMapObjects for the Future! Tactical Lizard Tamer, Unity Game Dev Log [Part 135]Basics of Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth ✔️ 2021.1 | Game Dev TutorialTerrain Texture Layering! Tactical Lizard Tamer, Unity Game Dev Log [Part 146]Mouse Pointer in Screen and World Space! Mouse Picking in Unity! ✔️ 2021.1 | Game Dev TutorialWind Animated Grass In Unity URP Shader Graph Using Meshes! ✔️ 2020.3 | Game Dev TutorialPeicemeal Terrain Processing! Tactical Lizard Tamer, Unity Game Dev Log [Part 132]Blocks Are In! Tactical Lizard Tamer, Unity Game Dev Log [Part 169]Clients Are Obsolete! Tactical Lizard Tamer, Unity Game Dev Log [Part 182]The Graphics Pipeline and You | Writing Unity URP Code Shaders Tutorial [1/9] ✔️ 2021.3Drawing Boxes and Rectangles in Shader Graph with 2D SDFs! #Shorts Preview | Unity Game Dev TutorialA Whole Turn Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 163]
Ned Makes Games |

Shader Graph and C# Interaction! Set Properties from Scripts! ✔️ 2020.3 | Unity Game Dev Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER