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
✔️ 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
![MapObjects for the Future! Tactical Lizard Tamer, Unity Game Dev Log [Part 135]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK MapObjects for the Future! Tactical Lizard Tamer, Unity Game Dev Log [Part 135]](https://i.ytimg.com/vi/IsLWJqzYE-A/mqdefault.jpg)

![Terrain Texture Layering! Tactical Lizard Tamer, Unity Game Dev Log [Part 146]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Terrain Texture Layering! Tactical Lizard Tamer, Unity Game Dev Log [Part 146]](https://i.ytimg.com/vi/J5iwqFYDdfk/mqdefault.jpg)


![Peicemeal Terrain Processing! Tactical Lizard Tamer, Unity Game Dev Log [Part 132]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Peicemeal Terrain Processing! Tactical Lizard Tamer, Unity Game Dev Log [Part 132]](https://i.ytimg.com/vi/JMLr0VR_y00/mqdefault.jpg)
![Blocks Are In! Tactical Lizard Tamer, Unity Game Dev Log [Part 169]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Blocks Are In! Tactical Lizard Tamer, Unity Game Dev Log [Part 169]](https://i.ytimg.com/vi/K5BxfhPQlw0/mqdefault.jpg)
![Clients Are Obsolete! Tactical Lizard Tamer, Unity Game Dev Log [Part 182]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Clients Are Obsolete! Tactical Lizard Tamer, Unity Game Dev Log [Part 182]](https://i.ytimg.com/vi/KUQUJahR8mQ/mqdefault.jpg)
![The Graphics Pipeline and You | Writing Unity URP Code Shaders Tutorial [1/9] ✔️ 2021.3
Play Kitty Cat Squash ► https://store.steampowered.com/app/1814110/Kitty_Cat_Squash/
✔️ Tutorial tested in 2020.3 and 2021.3
🚨 Edits: If you create your project from a template, ensure Depth Priming Mode is set to Disabled in your URP settings asset. To find this asset, open Project Settings, navigate to Graphics, and select the renderer asset at the top of the window.
Would you like to start writing shaders but don’t know where to start? Or, have you encountered a limitation of URP’s Shader Graph you need to overcome? In this tutorial series, I’ll walk you through writing a fully featured, general purpose shader for Unity’s Universal Render Pipeline — exclusively in code. Dont know HLSL or ShaderLab? No problem.
Tutorial series:
📰 Article version ►https://nedmakesgames.medium.com/writing-unity-urp-shaders-with-code-part-1-the-graphics-pipeline-and-you-798cbc941cea
🔀 Playlist ► https://www.youtube.com/playlist?list=PLAUha41PUKAYdsStTcjJbNV-GM3F2xm9s
1️⃣ The Graphics Pipeline ► Youre watching it!
2️⃣ Lighting and Shadows ► https://youtu.be/1bm0McKAh9E
3️⃣ Transparency ► https://youtu.be/4zw6Vq5CzLY
4️⃣ PBR Materials ► https://youtu.be/5GGISvt4KEA
5️⃣ Advanced Lighting ► Coming soon
6️⃣ Advanced URP Features ► Coming soon
7️⃣ Custom Lighting Models ► Coming soon
8️⃣ Vertex Animation ► Coming soon
9️⃣ Interacting with C# ► Coming soon
👑 Join my Patreon to access tutorials early, download project files, vote on future topics, and more! Thank you so much!
► https://patreon.com/nedmakesgames
🔗 Check out my website for a searchable list of tutorials!
► https://nedmakesgames.github.io
2️⃣ 2nd Channel ► https://www.youtube.com/nedmakesgames2
🔴 Twitch ► https://www.twitch.tv/nedmakesgames
🐦 Twitter ► https://twitter.com/nedmakesgames
🎮 Discord ► https://discordapp.com/invite/ubxSVBK
📸 Instagram ► https://instagram.com/nedmakesgames
👽 Reddit ► https://reddit.com/u/nedmakesgames
🎶 TikTok ► https://www.tiktok.com/@nedmakesgames
☕ Ko-fi ► https://ko-fi.com/nedmakesgames
📚 Reference scripts
► Flat white: https://gist.github.com/NedMakesGames/e102eaf3b0918a75d538053ab1853914
► Flat color: https://gist.github.com/NedMakesGames/863ecfbe1c77dc9aefb4d5ebc72d19c9
► Textures: https://gist.github.com/NedMakesGames/a10b965c8b453e07e9cedb29f155ee3b
⏲️ Timestamps:
0:00 Intro
0:53 Ad
1:26 Tutorial scope
2:58 Project set up
4:50 ShaderLab
7:02 Intro to HLSL
8:52 The Graphics Pipeline
9:34 The Input Assembler
11:09 The Vertex Stage
12:40 Spaces
15:45 The Rasterizer
16:04 The Fragment Stage
15:52 Hello World
18:54 Properties in ShaderLab
21:34 Properties in HLSL
22:31 Texture Properties
23:46 Macros
25:16 Sampling a Texture
26:35 What Are UVs
27:12 UVs in the Vertex Function
29:06 Interpolation
30:22 Hello Textures
31:26 Wrap up and credits
🎖️ Credits, references and further reading:
• Unity Technologies: Shader Calibration Scene - https://assetstore.unity.com/packages/templates/tutorials/shader-calibration-scene-25422
• shedmon: Wooden Slingshot - https://sketchfab.com/3d-models/wooden-slingshot-a909ff4b85a64acebe23795967aa9fe3
• Martijn Vaes: DAE — Bilora Bella 46 Camera — Game Ready Asset - https://sketchfab.com/3d-models/dae-bilora-bella-46-camera-game-ready-asset-eeb9d9f0627f4783b5d16a8732f0d1a4
• tonyflanagan: Thailand Girl — Animated - https://sketchfab.com/3d-models/thailand-girl-animated-a41f779fe45b4a04bdbf212e49b7f6b5
• Kelvin Valerio: Brown Cat with Green Eyes - https://www.pexels.com/photo/brown-cat-with-green-eyes-617278/
• owowowsam: Mini Earth - https://www.cgtrader.com/free-3d-models/space/planet/mini-earth
• Tom Patterson: Natural Earth III - http://www.shadedrelief.com/natural3/pages/textures.html
• W3schools: CSS RGB Colors - https://www.w3schools.com/css/css_colors_rgb.asp
Music: https://www.purple-planet.com
#GameDev #IndieDev #Unity The Graphics Pipeline and You | Writing Unity URP Code Shaders Tutorial [1/9] ✔️ 2021.3](https://i.ytimg.com/vi/KVWsAL37NGw/mqdefault.jpg)

![A Whole Turn Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 163]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK A Whole Turn Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 163]](https://i.ytimg.com/vi/KpRFUrL-NYI/mqdefault.jpg)