HDRP Build throws error when trying to set 'runInEditMode' on 'CustomPassVolume'

Avatar
  • updated
  • Fixed

2019.4.20f1
HDRP 7.5.3

Bulding for windows throws the following error:

"Assets\Shapes\Scripts\Runtime\Immediate Mode\HDRPCustomPassManager.cs(46,13): error CS1061: 'CustomPassVolume' does not contain a definition for 'runInEditMode' and no accessible extension method 'runInEditMode' accepting a first argument of type 'CustomPassVolume' could be found (are you missing a using directive or an assembly reference?)"

When I wrap that in #if UNITY_EDITOR//#endif the error goes away. I'm guessing the build process strips the property(?).

Reporting a bug? please specify Unity version:
2019.4.20f1
Reporting a bug? please specify Shapes version:
3.0.0
Reporting a bug? please specify Render Pipeline:
HDRP
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Fixed

ah yep, that one line should be wrapped in an #if UNITY_EDITOR. this has now been fixed in 3.0.1 :)

Avatar
Freya Holmér creator
  • Answer
  • Fixed

ah yep, that one line should be wrapped in an #if UNITY_EDITOR. this has now been fixed in 3.0.1 :)