Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by GurgelBrannare · Apr 27, 2014 at 10:37 PM · 3d text

How to add a font texture to a custom text mesh?

Hi! The thing I'm having problem with is that I was using this custom shader http://wiki.unity3d.com/index.php?title=3DText So that the 3d text should not be visable through walls. Then I used a app called BM font to get a font texture: http://www.angelcode.com/products/bmfont/

And now I'm a bit stuck cause I got the targa image file with the font texture but the associated font file is a fnt and not a ttf that unity uses.

So it feels like I took a wrong turn somewhere :) Please point me in the right direction!

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image robertbu · Apr 27, 2014 at 11:10 PM 0
Share

I don't think you can import a font using bmfont for use with a text mesh. I've used bmfont to import fonts into Unity for use with EZGUI. In order to get them to work I had to rename the .fnt file to a .txt file. But I believe you must import fonts directly for a text mesh. That is just drag and drop your TrueType font file into the project.

avatar image GurgelBrannare · Apr 28, 2014 at 10:51 AM 0
Share

Yeah the problem is that if I use a TrueType font they seem to get imported with their own material that can't be replaced and their materials shader is grayed out and can't be changed. So then I'm back at the original problem of the text mesh being visable through walls. And the first link I linked implies that this problem can be worked around but I can't get it to work.

avatar image robertbu · Apr 28, 2014 at 03:40 PM 0
Share

Ohhh... I don't have time to verify, but I believe what you have to do is:

  • Import the font

  • Select the font and change the 'Character' setting to Unicode in the Inspector.

  • Click on the gear icon in the upper right of the Inspector and select 'Create Editable Copy'.

avatar image GurgelBrannare · May 13, 2014 at 12:13 PM 0
Share

O$$anonymous$$G thanks! That's some well hidden stuff :)

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Toonk · Nov 11, 2016 at 06:25 PM

It worked for me by simply importing the font as a .dfont - file (how fonts seem to be usually stored on mac pc's).

When imported, the font texture is visible in the inspector.

alt text


screen-shot-2016-11-11-at-192302.png (52.9 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

instantiate 3d text with different names - c# 1 Answer

3D text - bad quality and it is always visible 2 Answers

3D Text visible from/in x distance/place 0 Answers

Fading 3d text - only fades once 1 Answer

How do I create a scrolling HP meter? (EarthBound style) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges