Skip to content

Commit d44852d

Browse files
authored
Update README.md
1 parent 50686af commit d44852d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Assets/HoloToolkit/UI/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Materials used in prefabs
1212

1313
Material for 3DTextPrefab with occlusion support. Requires 3DTextShader.shader
1414

15+
![Default Font material vs 3DTextSegoeUI material](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions06.png)
16+
1517
### [Prefabs](Prefabs)
1618

1719
Common useful UI prefabs
@@ -25,11 +27,19 @@ Common useful UI prefabs
2527
UI Text Mesh prefab with optimized scaling factor at 2-meter distance. (Please read the instructions below)
2628

2729
**IMPORTANT**: To use Text prefabs, please make sure to import SegoeUI.TTF font file from your system font folder (C:\Windows\Fonts\)
30+
![Importing Segoe UI font file](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions01.png)
2831

2932
1. Assign font texture to 3DTextSegoeUI.mat material.
30-
2. On 3DTextSegoeUI.mat material, select the shader Custom/3DTextShader.shader This material will make text object occluded by the object in front of them.
33+
![Assigning font texture](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions02.png)
34+
35+
2. On 3DTextSegoeUI.mat material, select the shader Custom/3DTextShader.shader. This material will make text object occluded by the object in front of them.
36+
![Assigning shader](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions03.png)
37+
3138
3. Assign Segoe UI font and 3DTextSegoeUI material to the text components in the prefabs.
39+
![Assigning font file and material](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions04.png)
40+
3241
4. Follow the same steps for the sample text layout prefabs in HoloToolkit-Examples\Text
42+
![Sample layout prefabs](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions05.png)
3343

3444
**Working with Fonts in Unity**
3545

@@ -49,6 +59,7 @@ When adding a UI or canvas based Text element to a scene, the size disparity is
4959

5060
**Disclaimer**: The default value of any font may be effected by the texture size of that font or how the font was imported into Unity. These tests were performed based on the default Arial font in Unity, as well as one other imported font.
5161

62+
![Font size with scaling factors](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions07.png)
5263

5364
### [Scripts](Scripts)
5465

0 commit comments

Comments
 (0)