AccessibilityNode not working in Unity?

Hi, I have a class project I am working on (with a due date tomorrow, unfortunately RIP to me). But I have made my project about adding accessibility to a Unity game. I've successfully added apple unity core and accessibility plugins to my project, and my project builds. But I have simple text nodes and buttons and they aren't accessible with voiceover once I build/export my game and test. I am only building for MacOS right now (for the assignment).

I don't have too much experience with Unity, but I am relatively experienced with accessibility (even formerly an intern and contractor at Apple for accessibility). So I wonder if I am just using Unity incorrectly? Perhaps I've done something to my build process (or haven't done something I should)? I've attached a photo of what my dev environment looks like in Unity, I've focused a text node (on the left) and on the right are my AccessibilityNode settings.

Any help would be awesome, even if I don't make my deadline tomorrow... :*(

Project repo is here, if it is helpful: https://github.com/frankelavsky/PGD_final_project

Thanks!

Answered by Engineer in 837652022

Hi frankelavsky,

At the moment the Accessibility plugin only generates accessibility elements for iOS executables. If you're running with the Mac as a direct target (as opposed to a Mac Catalyst) app then that might be why VoiceOver is not picking up your elements.

If you're building as a Mac Catalyst app, it's possible that the issue instead has to be with your nodes missing labels. In any case, we'd be happy to follow up with you via Feedback Assistant if you'd like to file a bug through there: feedbackassistant.apple.com

Thanks!

Accepted Answer

Hi frankelavsky,

At the moment the Accessibility plugin only generates accessibility elements for iOS executables. If you're running with the Mac as a direct target (as opposed to a Mac Catalyst) app then that might be why VoiceOver is not picking up your elements.

If you're building as a Mac Catalyst app, it's possible that the issue instead has to be with your nodes missing labels. In any case, we'd be happy to follow up with you via Feedback Assistant if you'd like to file a bug through there: feedbackassistant.apple.com

Thanks!

Hi,

Thanks so much for taking the time to respond. That explains it: I am building for MacOS as a direct target. Really unfortunate.

I actually chose this option (over Unity's own stuff and indie dev approaches where they build a speech synthesizer) specifically because the docs for Unityplugins note that MacOS is supported. I couldn't find a note that clarifies the accessibility elements are only for iOS executables...

If that documentation exists, I'd love to look it over. And if it doesn't, then perhaps consider adding a note about current support to the accessibility page.

In any case, thanks again for the response. At least I know I didn't have something technical missing that I could have changed. Bummer not to be able to see whether my work actually worked before I turned it in, though.

AccessibilityNode not working in Unity?
 
 
Q