Questions tagged [urp]
The Universal Render Pipeline (URP) is a prebuilt Scriptable Render Pipeline, made by Unity. Use this tag for questions related to URP in Unity3D.
138
questions
-5
votes
0
answers
38
views
How to set the falloffIntensity on a Light2D from a script?
I need to change the FalloffIntensity parameter, which script to access and how to do it?
I've combed through a lot of sites and either this information doesn't work, or I don't fully understand ...
0
votes
0
answers
20
views
How about CameraSwitcher in Unity URP
When I modified the camera using the Rendering Debugger window, it did not display correctly on the Game view.
When I change the order of the CameraSwitcher array, if I mount the camera first, I can ...
0
votes
0
answers
50
views
Error CS2006: Command-line syntax error: Missing '<text>' for '-define:' option when installing URP in Unity 2021.3.15f1c1
I encountered the following error when installing URP into an existing project:
error CS2006: Command-line syntax error: Missing '<text>' for '-define:' option
I couldn't find any solutions ...
1
vote
0
answers
39
views
How to Achieve See-Through Effect in Unity URP
I am using Unity 2022.3.16f with the URP, and I want to create an effect where you can see through object A to object B, as shown in the attached image:
Here is the shader code for object A:
Shader &...
0
votes
0
answers
47
views
Issue with URP transparent Material
I recently started a new project in Unity, using its Universal Render Pipeline (URP).
I also just made a jar asset for said game in Blender which I imported into my project.
The next thing I did is ...
0
votes
0
answers
10
views
How to apply the new vertices to the light in a graph shader
I am doing a shader to "simulate" waves on a plane. Here is my subshader for doing the curves of the waves.
It works well, as you can see :
The problem is, the light reflection isn't ...
1
vote
1
answer
62
views
URP Build looks different than Editor?
I can't seem to figure out why my URP scenes in the Editor look different than the scenes in my Build.
I am on Unity 2022.3.15f1 (tested on both MacOS and Windows 10) and have had the same result on ...
0
votes
1
answer
34
views
How do I get Phong Lighting to work on wave Vertex Shader HLSL Unity URP
I have a shader that is making a wave on a mesh and I added Phong lighting to it. But the valleys in the plane are not shaded.
How do I get the the UniversalFragmentBlinnPhong to correctly use the ...
0
votes
0
answers
94
views
How to fix an URP Error in Unity3D after cloning it from github?
When I'm trying to create a new URP asset, I'm getting an error:
Exception: Cannot load. Path Packages/com.unity.render-pipelines.universal/Runtime/Data/XRSystemData.asset is correct but ...
0
votes
0
answers
24
views
URP Lit material has a slightly white Background
i'm having trouble with a simple Lit URP Material. It always exhibits a slightly white background, no matter what PNG i use. Here is what it look like:
screenshot
As you can see, the background is not ...
0
votes
1
answer
106
views
Ceating a VR Portal in quest passthrough not working in build for specific unity version (2022.3.9)
I'm following this video tutorial (https://youtu.be/3iGrUy1Ah88?si=B_9ZcSWqp2ptozwr) to make a VR portal in mixed reality world. Its working fine when I use unity editor version 2020.3.5 but when I do ...
0
votes
0
answers
81
views
Unity builds: lag spikes in playmode and builds
All game builds have 3 sec freezes or lags every 1-2 minutes despite 60-90FPS.
Got a scene with RigidBody based Character followed by 2 NPC. URP 2021 LTS.
things tried so far:
Downsized big textures; ...
0
votes
1
answer
284
views
Using Stencil Shader to mask object, regardless of being occluded by mask in Unity URP
I'm working in Unity URP, and I'm unfortunately struggling a bit with stencil shaders. I was wondering if someone would be able to identify where I'm making a misstep:
Essentially, what I'm trying to ...
1
vote
1
answer
343
views
Unity Texture2D.ReadPixels not reading correctly from rendertexture
Basically I want a function that can take screenshot to a thumbnail in runtime.
here is my code run after RenderPipelineManager.endCameraRendering in URP in 2022.3:
private void TakeScreenshot(int ...
1
vote
2
answers
382
views
Toon Shader Materials Appear Pink in Unity
I am working on a project in Unity which was created using the Universal Render Pipeline (URP) project template. I have imported this asset pack from the Unity Asset Store -> https://assetstore....