✔️ 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!
https://www.youtube.com/c/nedmakesgam...
👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files!
► / nedmakesgames
🔗 Check out my website for a searchable list of tutorials!
► https://nedmakesgames.github.io
🔴 Twitch ► / nedmakesgames
🐦 Twitter ► / nedmakesgames
🎮 Discord ► https://discordapp.com/invite/ubxSVBK
📸 Instagram ► / nedmakesgames
👽 Reddit ► / nedmakesgames
🎶 TikTok ► / nedmakesgames
☕ Ko-fi ► https://ko-fi.com/nedmakesgames
💬 Video transcript
► https://docs.google.com/document/d/1X...
📚 Reference scripts
► Initial script: https://gist.github.com/NedMakesGames...
► Random colors: https://gist.github.com/NedMakesGames...
► Copied material: https://gist.github.com/NedMakesGames...
► Property IDs: https://gist.github.com/NedMakesGames...
⏲️ 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" - • Nihilore - Oblivious
• Unity Technologies: Let's Try: Shooting with Raycasts - https://learn.unity.com/tutorial/let-...
#GameDev #IndieDev #Unity