The Universal Render Pipeline (URP) is a prebuilt Scriptable Render Pipeline, made by Unity. Use this tag for questions related to URP in Unity3D.
Questions tagged [urp]
124 questions
1
vote
0 answers
Transparent URP material doesn't cast shadow
I recently upgraded a project from SRP to URP but now transparent objects no longer cast shadows (even when alpha is 1). I want transparent materials to behave similar to SRP's 'transparent' or 'fade' materials. Also this issue occurs in Unity 2021…
user15782390
1
vote
1 answer
Unity change color in mesh overlap using URP
I have a plane mesh (a custom trail) that uses an advanced shader in URP and I need it to detect overlaps and change it's color to red.
The application is 3d and the trail is always drawn at y zero. The user needs to have visual feedback when the…

Douglas Bittencourt
- 41
- 8
1
vote
0 answers
How to make Sphere Mask follow the parent?
I'm making a bubble shield. I use the Sphere Mask in Shader Graph to make a collision effect (the Sphere Mask uses global position as Coords). But if I move the shield, the Sphere Mask will be in the same world place, so the collision effect won't…

matheus hisatsu
- 13
- 1
- 3
1
vote
1 answer
Unity (URP) - mixed/rt shadows but only for dynamic objects?
I am still new to unity, creating a project right now using URP (incl. bakery) and looking for a way to use lights and shadows in a way that may or may not exist ^^
I have a scene with mixed lights, having baked GI and shadowmasks, and combined with…

ANB_Seth
- 141
- 2
- 10
1
vote
0 answers
Problem with a shader when building for macOS in unity3d
I am completely new to the world of shaders etc. so I am trying to be as specific as I can. I have an application where I use the a shader created by Unity see https://github.com/Unity-Technologies/TilingRandomization that randomises the tiling. In…

JAQuent
- 1,137
- 11
- 25
1
vote
1 answer
How to set environment ambient intensity when two scenes are loaded additively in Unity?
I have two scene loaded additively. In each scene, there is an Environment Lighting Intensity Multiplier value.
I have found how to set this value in code, which is RenderSettings.ambientIntensity. But it seems that only the first scene's ambient…

yuchen
- 237
- 1
- 10
1
vote
1 answer
How to set Cookie offset in URP Unity?
Here in manual we see described text about cookie offset "You can also animate this property to scroll the cookie" :
Here in Editor i can change the offset in runtime:
But how to do this from script if he tells me this:
'Light' does not contain a…

Nikolay Kolomiytsev
- 525
- 3
- 13
1
vote
1 answer
Unity URP Material scripting
I just started using URP in Unity for a game in progress. I'm doing a sort of sprites-in-3d thing, so I'm rendering some sprite sheets on quads. To do this, I create a Material with the sprite sheet and use tiling/offset to render the proper frame…

Mike Lyle
- 11
- 2
1
vote
1 answer
Unity URP VolumeComponent Could Not Be Found & Cannot Convert From Vignette To Volume Profile
I'm trying to create an animated vignette, but I am unable to reference it in code. On my script attached to the Global Volume, I wrote:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using…

Jack Martin
- 21
- 3
1
vote
1 answer
Unity 2D Renderer URP Makes my UI Camera have a background color
I am trying to add lighting to my 2D project, so I created a new Universal Render Pipeline that takes in a 2D renderer. I have 2 separate cameras, one for UI, and one for game elements. The moment I add a pipeline to my project, my UI Camera has a…

Kitsomo
- 133
- 7
1
vote
0 answers
Unity URP foam shader bug?
When I'm in a scene view I can see the sea foam
But when I'm in game I do not see the foam. Why is this?
Basic Sea Foam Shader Graph
DepthFade subgraph

user1239299
- 665
- 8
- 26
1
vote
1 answer
Unity LoadAssetBundles changes Material into Pink ? (URP)
In Unity URP when i load Assetbundle from server all it's materials shaders are correct but object becomes PINK. Any Idea how to resolve this?

Abhishek Jain
- 179
- 2
- 7
1
vote
0 answers
Unity URP Shader Graph keywords not working
I have created a shader(URP) using the shader graph and created a custom shader GUI to access the _SurfaceType keyword, but changing the _SurfaceType from the editor script does nothing.
Any ideas?
if (targetMat.HasProperty("_SurfaceType"))
…

Akash Gajbhiye
- 335
- 4
- 17
1
vote
1 answer
How to add grass on a procedural mesh in Unity
I was unable to find a good tutorial to help me in my situation :
I created a procedural mesh looking like an island in unity and I want to cover this mesh of grass but after a certain height (it's an island so I don't want grass on the beach...).
I…

Nathan Bonelli
- 21
- 3
1
vote
1 answer
Edit Offset Values in Unity URP Lit Shader via Script
I want to edit the Offset Parameter of Surface Input in Simple Lit Shader of URP in Unity, but I am not able to do so.
I tried using Method SetTextureOffset still cannot update the offset value.
Please Help
Here is the Offset I want to change via…

AryanshDev
- 66
- 2
- 11