Unity3DRuntimeTransformGizmo icon indicating copy to clipboard operation
Unity3DRuntimeTransformGizmo copied to clipboard

Shaders not working in URP.

Open peter5885 opened this issue 3 years ago • 6 comments

It seems like the shader for the outline is not working for URP. Version 10.3.2, Unity 2020.3.1f1

The gizmo seems to work well but I get the pink default material when selecting an object to transform. Any help would be appreciated.

image

peter5885 avatar Mar 23 '21 22:03 peter5885

I havent gotten into the new render stuff. Maybe what this person did would fix the issue https://github.com/HiddenMonk/Unity3DRuntimeTransformGizmo/issues/27#issuecomment-622356990

HiddenMonk avatar Mar 25 '21 03:03 HiddenMonk

Yeah, I look at the existing issues and tried what is suggested, doesn't work. I think it specifically the Outline shader as the Lines shader seems to work as expected. Thanks for getting back in touch and suggesting some work arounds. I'll keep trying and feedback if I find anything.

peter5885 avatar Mar 25 '21 12:03 peter5885

Yeah, I look at the existing issues and tried what is suggested, doesn't work. I think it specifically the Outline shader as the Lines shader seems to work as expected. Thanks for getting back in touch and suggesting some work arounds. I'll keep trying and feedback if I find anything.

just change the tags of you subshader from Tags {"LightMode" = "Always" } to Tags {"LightMode" = "UniversalForward" }

sagarmicronixsystem avatar Apr 12 '21 18:04 sagarmicronixsystem

@sagarmicronixsystem Awesome! Works perfectly, thank you very much!

peter5885 avatar Apr 12 '21 19:04 peter5885

why gizmo seems to not work for me ? URP. Version 10.4.0

miccall avatar Jul 05 '21 11:07 miccall

After setting the "LightMode" to "UniversalForward", also make sure to enable the Post-Processing for your main camera. This was the reason I found that the gizmo was behaving wierdly at runtime.

image

nfynt avatar Feb 26 '23 19:02 nfynt