android - Unity + Vuforia: UI elements not showing -


i'm trying add ui in ar app. i'm doing first time , question silly. sorry that.

why ui elements doesn't show up? lets have text box. can see if run project on computer when build , run on android device doesn't appear. can see less 2 seconds , camera turned on , text hidden. arcamera on ui layer or new @ stuff , can't figure out.

how can fix this? how can make text field appear on top of camera? in advance!

update

i saw text in canvas in ui layer , arcamera in default layer. far can understand default layer on ui layer , that's reason why can't see text. if that's it, why work on computer , how fix run on android device?

it's little hard sugest answer without more info i'll try best. maybe changing canvas "render mode" "screen space - camera" , once again "screen space - overlay".

i don't know why seems trick me. @ first doesn'n show ui after shows normally.

in case doesn't work, can try make ui via scripting before new unity ui; know, :

void ongui() {  if(gui.button(new rect(0,0,100,100),"my button"))   {    //some code here   } } 

that way on top of arcamera.

hope find useful.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -