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. Dismiss Notice

3D Text Appears/Disappears on Game Preview

Discussion in 'UGUI & TextMesh Pro' started by Markedavis2001, Mar 26, 2015.

  1. Markedavis2001

    Markedavis2001

    Joined:
    Nov 20, 2013
    Posts:
    30
    Hey guys,

    So I just added a 3D text object to my scene and added a custom font I found for free online. I actually found several that I liked and wanted to try them out in-game. However, when I use any of these fonts they appear initially in both the Scene view AND Game view, but when I click Play, the 3D text disappears.

    However - the text appears just fine if I use the default Arial that comes with Unity so I'm reasonably sure it's font related but I'm baffled to why it would show up in preview mode and not on play.

    I've attached a few images to help show you what I'm seeing and the files in question.

    Any ideas on what's going on?


    3DText.png Pict2.png
     
  2. FireHawkX

    FireHawkX

    Joined:
    Apr 26, 2016
    Posts:
    28
    I find it sad that there are posts more than a year old without a single suggestion or answer...

    Did you ever find a solution or cause to this issue? or did you give up?

    I am currently having the same problem and have been searching through countless forum post all over...

    This is by far the closest one that seems to be the same issue i am having...

    However, it seems related to camera position somehow... If i put myself as flying camera, depending on the angle i am looking at the 3D text, it appear and dissapear... some angle works and the text is beautiful, while if i change the angle (example would be looking up or down at the 3D text) then the text would vanish like the picture above...

    Any suggestions at all? :)
    Thanks for your time and sorry to "revive" a old thread instead of making a new one! ;)
     
  3. Markedavis2001

    Markedavis2001

    Joined:
    Nov 20, 2013
    Posts:
    30
    Hey there,

    Yeah, I was bummed no one answered but I eventually figured it out. Though sadly I'm not entirely sure what I did to fix it. It MIGHT have been something to do with the alpha being set incorrectly. But honestly I can't remember what I did to fix it.

    I'd be glad to help you try to solve yours, though. Tell me more about it - what have you tried? I take it your text shows up fine in the editor mode but not in game mode? Are you doing anything with the text like making it fade in/out? Is your text part of your canvas or is it a 3D game object like in my scene?
     
  4. FireHawkX

    FireHawkX

    Joined:
    Apr 26, 2016
    Posts:
    28
    Hi again! :)

    In my situation, its a 3D Text "mesh" that i moved to be "co planar" on a sprite (sheet of paper) that was apposed on a tree (from a terrain) (i learned to co planar word on another unsolved issue someone had)
    here it is for reference :
    http://answers.unity3d.com/questions/207238/why-does-my-textmesh-dissappear-from-certain-camer.html
    However, since it was from 2012 i didnt dare "revive" that one ;)
    Beside, they do give a semi solution... yet since the only thing behind my 3dtext is a sprite (no shader) and a tree with nature tree shader... so its not like i can change them like that post said...

    The 3DText vanish in certain camera angle BOTH in the engine and in the exe build... I moved it down a bit and change the angle to about 10' and it is much harder to make it dissapear when in game... you have to go very near and tilt the first person view up or go to the side while looking at it... I also tried unchecking and changing everything in the actual mesh of the 3dtext gameobject, tried making a new 3dtext shader i got from online to make the text one way, tried changing all values in text mesh as well as making a new material and adding the font texture to it... that last one was actually worse the text was garbled completely! hehe...

    I'm thinking this might just be a bug in the engine that doesnt have any fixes yet...
    Thanks for trying to help out! :)
     
  5. Markedavis2001

    Markedavis2001

    Joined:
    Nov 20, 2013
    Posts:
    30
    whew.. yeah that sounds complicated. At leas there's a contest going on right now to enter bugs. I've been pleasantly surprised at the speed at getting my Unity engine bugs fixed when I put in solid repro steps into my report.

    Hope you get this one fixed (or that someone else out there reads this and has a better idea on what it might be).
     
    FireHawkX likes this.
  6. FireHawkX

    FireHawkX

    Joined:
    Apr 26, 2016
    Posts:
    28
    I finally found out some info and was able to fix it!! :)

    using layers completely fixed the bug for me!!

    when using 2 different 3D objects, i would leave the object behind on Default layer and the one on top at UI layer... making sure it was at least 0.1 difference in position so they wouldnt clip...

    one of them was a 2Dsprite (paper) with text on top... and it would glitch out all the time... setting the sprite as -1 in "order in layer" fixed it immediately!! :)

    source : http://forum.unity3d.com/threads/3d...he-text-to-be-in-front-of-the-sprites.219700/
     
    jiseong1998 likes this.