Topic locked

Unity UI renders wrong.

May 11, 2015 - 2:16am #8

Hello,

While working with Unity and merging previous project I have encountered problems with UI. I am using Vuforia 4.2.3 and Unity 5.0.1p1.
Problems only occurs in iOS build the second marker is being recognized. When it runs in Editor it is okay. Below are two screen grabs having different layers of 3d geometry visible to camera. Second thumbnail shows UI still (that can be pressed) but rendering of it is completely messed up.

Please let me know if anyone encoutered same issue or has a clue where to look for the problem.

AttachmentSize
Image icon UI1.jpg128.99 KB
Image icon UI2.jpg255 KB

Unity UI renders wrong.

May 11, 2015 - 4:29am #7

Seems like not even a simpliest application is working with Vuforia 4.2.3 and Unity 5.0.1p1. Object tracker + AR camera + cube = UI as in 2nd image.
---
Some more testing showed that with Image tracking the same issue appears.

---
Using Screen Space - Camera instead of Overlay seem to solve the problem
Can not recreate the issue of font going square. Anyone from Vuforia support aware of these issues?

Unity UI renders wrong.

May 12, 2015 - 3:42pm #6

Unity UI renders wrong.

May 13, 2015 - 2:35am #5

Is this the solution?

"Using Unity 5.0.1p3 and Vuforia ImageTargets 4.2.3 sample, I created a Unity Canvas element set to Screen Space - Overlay along with a Text element and it displayed fine on an iPhone 6 (8.3) device."

 

Unity UI renders wrong.

May 13, 2015 - 8:01pm #4

I've been able to get all 3 Unity Canvas modes working with Unity 5.0.1p3 and ImageTargets 4.2.3. Are you using Unity's UI or a 3rd party plug-in such as NGUI? If you are using Unity's UI, are you able to provide steps to reproduce the issue using the ImageTargets 4.2.3 sample which we can try?

Unity UI renders wrong.

May 14, 2015 - 7:42am #3

We are using Unity 5.0.1p4 now and steps are:

1. Import Vuforia package
2. Drag and drop AR Camera and Object target. (set up license, import tracker data etc.)
3. Put a cube on object target
4. Create Unity UI with vertical group containing 3 buttons having layout element component on them.
 

That's it.

Unity UI renders wrong.

May 18, 2015 - 4:37am #2

Hi,

I just tried the same test, but it seems to work fine (I can see the 3 buttons in my vertical layout panel), both in Camera and in Overlay modes;

using Unity 5.0.2 p1 (tested on Android and iOS 8.3 devices)

See attached screenshot taken from iPhone 5S running iOS 8.3

AttachmentSize
Image icon IMG_0069.jpg148.63 KB

Unity UI renders wrong.

May 20, 2015 - 6:15am #1
Topic locked