To summarize the thread:
- an issue is observed with Vuforia 4.2.3 and Unity 5.0.1 / 5.0.2, in scenes that include a UI canvas, an ARCamera and one or more 3D scene objects that are using Unity 5 "Standard Shader" materials
- the issue manifests on iOS devices by either "not rendering" or "incorrectly rendering" the UI (e.g. buttons, text labels, ...) when the Canvas "Screen Space" is set to "Overlay" or "Camera"
- the issue seems to affect Vuforia version 4.2.3, but not version 4.0.105
- the cause of the issue might be either an issue in Vuforia or an issue in Unity 5.0 itself, although the issue seems to be triggered specifically when using the ARCamera of Vuforia 4.2.3 (at the moment we are unable to confirm the actual root-cause)
- a possible "workaround" has been identified and successfully tested by some of the developers in this thread, which consists of editing the VideoBackground shader (located in the "Assets/Qualcomm Augemnted Reality/Shaders" folder) which is applied to the BackgroundPlane object and replacing this line:
"queue"="geometry-11"
with this:
"queue"="Geometry"
Note that this "workaround" might have potential side effects and you are encouraged to test your application extensively before committing to using it.
- a second "workaround" (for those who are not strictly required to use the "Standard Shader" of Unity 5 in their project) is to replace the Standard Shader with a Legacy shader (such as the Mobile/Diffuse or other Unity 4.x legacy shaders)
Hi all.
Same problem rendering ui elements and my solution based on Alessandro post.
Scenario:
Troubble: Not rendering some UI elements.
Destination Plattform: Android (Also didnt render in editor playmode)
Unity Version: 5.1.3f1
Vuforia Package version: vuforia-unity-5-5-9.unitypackage
Solution:
1) Modify Assets/vuforia/shaders/VideoBackgroud:
"queue"="geometry-11" to "queue"="Geometry"
2) Go to the background plane inside ARCamera -> Camera -> BackgroundPlane and modify the "Video Material" from Custom/VideoBackground to Custom/RenderVideoBackground.
Works fine built on Android.
Hope this help to save hours of work.