-
Notifications
You must be signed in to change notification settings - Fork 7
How to Start
TMP3D is shipped as Unity package. At the moment, the package is not hosted in any registry and must be installed via the package manager. Even though this means that you have to repeat the steps below to update your package it is a fairly easy process.
- Open the package manager in Unity from
Window>Package Manager
- Select the
+
dropdown button in the top-left corner of the package manager - Select
Add package from git URL...
- Enter
https://github.com/Ikaroon/TMP3D.git
as url and confirm
This method will always install the current state of the git. To get a released version head to the release page! Each release post will include the correct url for the release in question. In general you just have to append #<version>
at the end of the url (e.g. https://github.com/Ikaroon/TMP3D.git#0.1.1
).
To understand how to setup a TextMeshPro for 3D you can check out the sample in the package. For downloading that follow these steps:
- Open the package manager in Unity from
Window>Package Manager
- Select
Text Mesh Pro 3D Support
in the sectionIkaroon
- Expand
Samples
- Click
Import
next toSolid Text
- Now open the scene from
Assets/Samples/Text Mesh Pro 3D Support/<version>/Solid Text/Scenes/Sample_TMP3D
If you still need help, here are some steps how you setup a TextMeshPro for 3D. There are two ways of creating a TextMeshPro 3D.
The Automatic way:
- Create a TextMeshPro in a scene from
3D Object>Text - TextMeshPro (3D)
- Replace the FontAsset with another font
- Click
Create 3D Font Asset Variant
if it's not a 3D font already (The button will be disabled otherwise) - You have now access to 3D text!
The Manual way:
- Create a new FontAsset by using the
Font Asset Creator
fromWindow>Text Mesh Pro>Font Asset Creator
- Expand the created Asset and select the Material
- Change the Material's shader to
TextMeshPro/3D/Unlit
- Create a TextMeshPro in a scene from
3D Object>Text - TextMeshPro
NOT fromUI>Text - TextMeshPro
this is not supported yet. - Add a TMP3D_Handler component from
Script>Ikaroon.TMP3D>TMP3D_Handler
- Apply the FontAsset to the TextMeshPro component
- You have now access to 3D text!