Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about LWRP in 5.0
#8
(23-11-2019, 04:34 PM)darbycostello Wrote: Exactly the same issue here. However, I was able to attach the rendering feature by editing the ObiFluidRendererFeature.cs file. 

Specifically, I commented the compiler directive #if UNITY_2019_2_OR_NEWER && SRP_LIGHTWEIGHT from the top of the script along with the #endif at the bottom. Looks like it was causing some kind of conflict.

SRP_LIGHTWEIGHT is a version define, created by the /Obi/Scripts/Obi.asmdef assembly definition file if com.unity.render-pipelines.lightweight version 6.0 or higher is present in the project. (You can check this yourself by selecting the Obi.asmdef file found in /Obi/Scripts/, and looking at the version defines section in the inspector).

So as long as you're using Unity 2019.2 or higher and LWRP 6.0 or higher, both precompiler constants should be defined, and the renderer feature should compile without issue.

Maybe your LWRP package is a lower version than 6.0? (or Unity got confused due to some other reason?)
Reply


Messages In This Thread
Question about LWRP in 5.0 - by TheDopple - 21-11-2019, 05:06 PM
RE: Question about LWRP in 5.0 - by josemendez - 21-11-2019, 07:33 PM
RE: Question about LWRP in 5.0 - by TheDopple - 21-11-2019, 09:22 PM
RE: Question about LWRP in 5.0 - by josemendez - 22-11-2019, 11:19 AM
RE: Question about LWRP in 5.0 - by TheDopple - 22-11-2019, 04:49 PM
RE: Question about LWRP in 5.0 - by TheFlyHawk - 23-11-2019, 03:13 AM
RE: Question about LWRP in 5.0 - by darbycostello - 23-11-2019, 04:34 PM
RE: Question about LWRP in 5.0 - by josemendez - 23-11-2019, 08:28 PM
RE: Question about LWRP in 5.0 - by darbycostello - 23-11-2019, 09:41 PM
RE: Question about LWRP in 5.0 - by josemendez - 23-11-2019, 09:44 PM
RE: Question about LWRP in 5.0 - by AEAlmardenti - 17-02-2020, 11:38 AM