Giter Site home page Giter Site logo

aboutunity / a11y-public-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unity-technologies/a11y-public-sample

0.0 0.0 0.0 37.94 MB

Sample project using the Unity Accessibility APIs

License: Other

C# 61.12% HLSL 6.65% ShaderLab 32.23%

a11y-public-sample's Introduction

Accessibility (A11Y) Public Sample: LetterSpell

This sample Unity project implements the game LetterSpell, which is compatible with screen readers on mobile platforms. It demonstrates how to convert UI made with Unity, using uGUI (i.e. with a Canvas component), into data compatible with screen readers. Additionally, this sample shows how to read some system accessibility settings and apply them to the game.

Thanks for checking out this sample!

System Requirements

You can run this sample project in the Unity Editor:

  • Requires Unity 2023.3.0a17 and above.

You can build this sample project for the following platforms:

  • Android 8 and above.
  • iOS 13 and above.

Controls

In the Unity Editor:

  • Click and drag the letter card to the desired position.

On mobile devices, without the screen reader:

  • Tap and drag the letter card to the desired position.

On mobile devices, with the screen reader:

  • Tap a letter card or use swipe gestures to focus on the desired letter card.
  • Double tap to select the focused letter card.
  • Use swipe gestures to move the letter card forward or backward OR tap another card to move the focused card to that position.

Features Not Implemented

Some UI elements in the Options screen are there just to demonstrate how they can be converted into data compatible with screen readers and are not actually functional. These are:

  • The option search field
  • The color theme dropdown
  • The display size slider

Known Issues

  • On iOS, when in landscape, the accessibility focus indicator may be displayed with a smaller width than the actual width. This seems to appear for elements with a long width. This is an iOS bug, which we have already reported to Apple.
  • The letter cards' text style doesn't always update according to the system accessibility settings.

Additional Resources

Check out the documentation of the Accessibility module APIs.

Questions or Issues?

Come talk to us on the Unity Accessibility Forum!

Acknowledgement

LetterSpell is inspired by the iOS game Letter Rooms.

License

Our intention is that you can use everything in this project as a starting point or as bits and pieces in your own Unity games. For the legal words, see LICENSE.md.

a11y-public-sample's People

Contributors

bianca-stana avatar juliaperdigueirounity avatar unity-at-github avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.