microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

MRTK assets having shaders issue (shaders being pink ) #9924

Closed ashwinir05 closed 9 months ago

ashwinir05 commented 3 years ago

We are using HDRP pipeline with MRTK (V 2.6.2) for one of our project . All the MRTK assets such as buttons will appear pink , and shaders are also not editable in the Inspector window.

We tried doing edit -> render pipeline ->hdrp pipeline -> upgrade from builtin pipeline to hdrp , none of our other approaches worked. We do not have any errors in the console.

The error messages in the previous comment were caused by some other asset we have been using . resolved that issue

keveleigh commented 3 years ago

I don't believe MaintainBorderLightWidth is compatible with shaders other than the MixedRealityStandard shader. Adding @Cameron-Micka to confirm.

I know we have a step for upgrading to the lightweight / universal render pipeline to prevent pink materials: https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/features/rendering/mrtk-standard-shader?view=mrtkunity-2021-05#lightweight-scriptable-render-pipeline-support. I'm not sure if this step is also required for HDRP or if we'd need to add a different option. It might be worth trying!

polar-kev commented 3 years ago

@davidkline-ms, this looks similar to the issue we saw when the project path was too long. Thoughts?

Cameron-Micka commented 3 years ago

Yes, based on the errors it sounds like the materials have switched from using the MRTK/Standard shader to the HDRP/Lit shader. To continue to use features such as _FluentLightIntensity, _BorderWidth, etc. you will need to continue to use the MRTK/Standard shader.

I've never tried to use the HDRP since it is not advised to use with most AR and VR projects. But, as @keveleigh mentioned you could try the upgrade path to LWRP/URP to see if the MRTK/Standard shader's lighting model is still compatible with the HDRP.

david-c-kline commented 3 years ago

@polar-kev, at least one customer reported that the issue was resolved by shortening the project path.

stale[bot] commented 2 years ago

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

IssueSyncBot commented 9 months ago

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!