arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

'LWRP' does not exist in the namespace 'UnityEngine.Experimental.Rendering'

Open kndol opened this issue 7 years ago • 10 comments

Unity version: 2019.1.6f1 LWRP version: 5.7.2 ARFoundation-samples branch: lwrp-support-2019.1-with-2.1

When I load the 'ARFoundation-samples' project, I met errors:

Assets\LWRPSupport\LWRPBackgroundRenderPass.cs(4,42): error CS0234: The type or namespace name 'LWRP' does not exist in the namespace 'UnityEngine.Experimental.Rendering' (are you missing an assembly reference?)

Assets\LWRPSupport\LWRPBeforeCameraRender.cs(8,58): error CS0246: The type or namespace name 'IBeforeRender' could not be found (are you missing a using directive or an assembly reference?)

Assets\LWRPSupport\LWRPBackgroundRenderPass.cs(42,30): error CS0115: 'LWRPBackgroundRenderPass.Execute(ScriptableRenderer, ScriptableRenderContext, ref RenderingData)': no suitable method found to override

Assets\LWRPSupport\LWRPBackgroundRenderPass.cs(8,18): error CS0534: 'LWRPBackgroundRenderPass' does not implement inherited abstract member 'ScriptableRenderPass.Execute(ScriptableRenderContext, ref RenderingData)'

kndol avatar Jun 14 '19 08:06 kndol

I am also experiencing this issue trying to load the project.

ebeland avatar Jun 18 '19 17:06 ebeland

That branch was designed to work with LWRP 5.6.1 and is not compatible with 5.7.2. We'll need to do some work on our end to upgrade the sample. In the meantime, can you use LWRP 5.6.1?

tdmowrer avatar Jun 18 '19 20:06 tdmowrer

Can't downgrade below 5.7.2 with Unity 2019.1, so that does not seem to be an option.

Currently, non of the latest versions (Unity + LWRP + ARFoundation) seem to work together...

AlterHowdegen avatar Jun 19 '19 14:06 AlterHowdegen

Can't downgrade below 5.7.2 with Unity 2019.1, so that does not seem to be an option.

5.6.1 is compatible with 2019.1b4 and later. Indeed, it does not appear in the package manager window. I'm not sure why that is, but you can manually edit your Packages/manifest.json to set it to 5.6.1.

tdmowrer avatar Jun 19 '19 16:06 tdmowrer

Cool, will try and report back.

AlterHowdegen avatar Jun 19 '19 16:06 AlterHowdegen

Unity 2019.1.0f2 ARF 2.1.0 LWRP 5.6.1

Throws a couple compilation errors mainly realted to 'ARHumanBodyManager' etc.

Deleting all scripts (was only interested in LWRPSupport folder) removes compilation errors and properly works on device.

AlterHowdegen avatar Jun 21 '19 07:06 AlterHowdegen

please update it to newest release. LWRP and shadergraph is absolutely essential in my projects.

TheBricktop avatar Jun 26 '19 12:06 TheBricktop

Can you point me to a stable sample ARFoundation app and version of Unity that can achieve all of these goals.

#1 run on iOs 12 so I can launch my product before September. #2 Not throw obscure compiler references that there is no documentation on. #3 demonstrate proper lighting in AR #4 demonstrate face tracking.

I’ve tried numerous combinations of editor and sample app. Everything seems to be broken or in preview currently.

Thanks,

On Jun 26, 2019, at 8:59 AM, TheBricktop [email protected] wrote:

please update it to newest release. LWRP and shadergraph is absolutely essential in my projects.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/arfoundation-samples/issues/159?email_source=notifications&email_token=AARFA5F4GG4PRZHH2OTAECTP4NR4HA5CNFSM4HYFQPX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYTN5SA#issuecomment-505863880, or mute the thread https://github.com/notifications/unsubscribe-auth/AARFA5GJWUI6KZJUCRZ3Z43P4NR4HANCNFSM4HYFQPXQ.

ebeland avatar Jun 26 '19 18:06 ebeland

any news on this?

MaryamSaeed avatar Sep 24 '19 16:09 MaryamSaeed

Prior to ARFoundation 3.0, LWRP support only worked in very specific cases (i.e., the branch mentioned at the top of this thread) and was not very well supported.

LWRP (now called "Universal RP") is supported much better by ARFoundation 3.0; here is the documentation. This requires Unity 2019.2 or later.

@ebeland

Can you point me to a stable sample ARFoundation app and version of Unity that can achieve all of these goals...

If the 4 goals you mentioned are the only requirements (i.e., no LWRP support) then I recommend Unity 2019.2 and ARFoundation 2.1. Unity 2019.2 is the current stable release (i.e., it is not alpha or beta) and ARFoundation 2.1 is "verified" (i.e., not preview).

If you do need LWRP/Universal RP support, then I recommend Unity 2019.2 and ARFoundation 3.0 (currently in preview).

tdmowrer avatar Oct 05 '19 18:10 tdmowrer