It supports crisp text outlines regardless of the distance using the Signed Distance Field (SDF) technique. With Unity's Text Mesh Pro, you can secure the text rendering quality. These tests were performed based on the default Arial font in Unity, as well as one other imported font.
The default value of any font may be affected by the texture size of that font or how the font was imported into Unity. The differences in the two sizes are about 1000%, which would bring the scale factor for UI-based text components to 0.00046 (0.0004586111116 to be exact) or 0.0005 for the rounded value.
When adding a UI or canvas-based text element to a scene, the size disparity is greater still. Scaling values for the Unity 3D Text and UI Text
Scaling the text object or container to these values will not only allow for the 1:1 conversion of font sizes in a design program, but also provides a standard so you can maintain consistency throughout your experience. Based on the point system conversion to 1 meter and Unity's default Text Mesh font size of 13, the simple math of 13 divided by 2835 equals 0.0046 (0.004586111116 to be exact) which provides a good standard scale to start with (some may wish to round to 0.005). Most visual designers use points to define font sizes in the real world. For fonts, the bounding box for a 3D TextMesh comes in by default at about 1 meter in height.ĭefault Unity 3D Text (Text Mesh) occupies one Unity Unit, which is 1 meter One Unity unit translates to about 1 meter on HoloLens. Unity assumes all new elements added to a scene are one Unity Unit in size, or 100% transform scale. You can achieve better rendering quality by applying a scaling factor to get proper dimensions when using the UI Text and 3D Text Mesh components.īlurry default text in Unity Working with Unity's 3D Text (Text Mesh) and UI Text Changing a few variables results in sharper, higher-quality text with a manageable size in HoloLens. By default, UI Text and 3D Text Mesh appear blurry and are too large. To display text in Unity, there are three types of text components you can use-UI Text, 3D Text Mesh, and Text Mesh Pro. Text is one of the most important components in holographic apps. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers. Unity is the ultimate game development platform. Leverage your subscription services to supplement your development. Keep up-to-date with the newest features available with your subscription. Find diverse tools and resources to develop faster with Unity. To read an axis use Input.GetAxis with one of the following default axes. Use this class to read the axes set up in the Conventional Game Input, and to access multi-touch/accelerometer data on mobile devices. Description Interface into the Input system.