Obučavanje
Modul
Develop products with accessible color and contrast - Training
Learn the importance of color and contrast in digital design for accessibility.
Ovaj preglednik više nije podržan.
Nadogradite na Microsoft Edge da iskoristite najnovije osobine, sigurnosna ažuriranja i tehničku podršku.
The Accessibility utilities
provide support for some basic accessibility features when developing Mixed Reality applications in Unity.
The following features are supported:
This feature instructs a "Graphics Tools/Text Mesh Pro" based material to display a face color that is an inversion of its background color.
Bilješka
This feature can only be applied to text that is created with TextMesh Pro which is the recommended text component for Graphic Tools. Also note that for color inversion to work on a font material, the Graphics Tools/Text Mesh Pro
shader must be applied instead of the default shaders packaged with TextMesh Pro.
To turn on this feature without writing any code, you need to do the following first:
Bilješka
You may have difficulties finding the material of the font if you are in an icon view in the panel. To reveal the material as seen above, view the panel as a hierarchical list instead by moving the slider at the bottom of the panel to the extreme left.
Select the font material that is associated with the asset.
Change the shader of the selected material in the inspector panel from TextMeshPro/Mobile/Distance Field (or whatever your current shader is) to Graphics Tools/Text Mesh Pro
Your text will now be inverted. To turn off this feature, follow the same step in number 4 above.
This feature works on a material per material basis. If you need this feature applied to a range of materials, your app logic would have to call the SetTextColorInversion
method for all text materials it wishes to perform this behavior.
Obučavanje
Modul
Develop products with accessible color and contrast - Training
Learn the importance of color and contrast in digital design for accessibility.
Dokumentacija
Learn about the Measure Tools.
Learn about the Graphics Tools hover lights.
Learn about the tools available to developers in the Unity editor.