Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Camera not rendering UI

Discussion in 'UGUI & TextMesh Pro' started by surajsirohi1008, Aug 26, 2018.

  1. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    I've two cameras, one main camera and other is a rear view camera, I've text mesh pro in canvas set to world space, the text is "Engine ready", this text is displayed in rear view camera but not in main camera on android.

    Everything works fine in editor, the problem occurs on android device.


    This is the display from android device, no text is displayed.
    Screen Shot 2018-08-26 at 3.05.02 PM.png

    This is from the editor, this is what android device should display too.
    Screen Shot 2018-08-26 at 3.04.54 PM.png

    As you can see the rear view camera (at top middle) displays the text too( when players walks past it).
    Screen Shot 2018-08-26 at 3.04.45 PM.png
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,076
    why do you not simply render your UI in the "screen space - Overlay" mode?
     
  3. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    I want the text to be placed in the 3d world so the car can go past it, just to give a good effect.
     
  4. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,076
    Okay, I got the idea now.
    Unfortunately I do not have an idea what could cause it...
    Did you check the android logs? (
    adb logcat -s Unity
    )
     
  5. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    It's the first time I'm hearing about it, what this do?
     
  6. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,076
    adb is a tool for reading android logs. It is somewhere at your Android SDK location (I think inside the tools folder).
    navigate there with a command line tool (or better add that path to your PATH variables). Then write
    adb logcat -s Unity
    to get all the logs which a unity app on the android device produces.
    Here some more info: https://developer.android.com/studio/command-line/logcat
     
  7. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    Thanks, I'll use it to find the problem.