Schnurbusch Games

SayLayer

Screen reader support for uGUI in one line, player accessibility settings included.

SayLayer cover art: a game menu next to an accessibility settings panel

Unity 6 can talk to the screen reader of the operating system. Its accessibility module does not build the accessibility hierarchy from your UI, though. Every button, slider and label has to be created as a node and kept up to date by hand.

SayLayer does that part:

SayLayer.Attach(canvas);

Once per root canvas. SayLayer then adds buttons, toggles, sliders, scrollbars, dropdowns, input fields, scroll views and text, uGUI Text and TextMesh Pro, with name, role, value and state, and keeps them up to date while the game runs. The name comes from the element's own text or from the label next to it. SayLabel sets a name yourself, SayIgnore hides decoration.

Tested with a real screen reader

I tested the screen reader support on Windows with Narrator, in Unity 6000.3.25 and 6000.4.5. Unity 6000.4.1 and 6000.4.3 pass no accessibility data to Windows, so on the 6.4 line use 6000.4.5 or newer. TalkBack on Android and VoiceOver use the same Unity module, but I have not tested them on a device yet.

Settings your players can change

They start from the operating system's values, and players can change them in your menu:

An audit in the editor

The window Window > SayLayer > Accessibility Audit lists missing names, small text, low contrast, controls that a keyboard or gamepad cannot reach, and a missing first selection. Common findings have a one-click fix with undo.

With SettingsNow in the project, its menu gets an Accessibility tab. Neither package requires the other.

What it is not

uGUI only, not UI Toolkit. SayLayer works with the screen readers that Unity's module supports (Narrator, TalkBack, VoiceOver), not with NVDA or JAWS. It has no speech output of its own, and it does not by itself make a game compliant with accessibility laws or standards.

Requirements

Unity 6000.3.25 (6.3 LTS), or 6000.4.5 and newer, with uGUI. Full C# source, 167 edit mode tests, a demo scene and a manual.

Where to get it

All tools