ios - 如何为 iOS 版 Unity3d 添加辅助功能

标签 ios unity3d accessibility unity3d-2dtools

<分区>

有没有什么方法可以通过 Unity3d 与 iOS 的 VoiceOver 辅助功能 native 支持进行通信?我们有一个需要可访问的应用程序,但我们不确定如何去做。

创建我们自己的自定义 VoiceOver 是不可能的,因为我们需要语言支持,所以我们需要本地化。我们的直觉告诉我们要通过插件与 iOS 进行通信,但是 iOS 硬件似乎无法捕捉统一的点击,而且它似乎会覆盖我们的一些手势。

如有任何建议,我们将不胜感激。

最佳答案

有一些注释here

In general, you do not create accessibility elements for items in your application because standard UIKit controls and views are accessible by default. However, if you have a view that contains nonview items, such as icons or text images, that need to be accessible to users with disabilities, you create accessibility elements to represent them. In this case, the containing view should implement the UIAccessibilityContainer informal protocol and use this method to create an accessibility element to represent each item that should be exposed to an assistive application.

here

The UIAccessibilityContainer informal protocol provides a way for UIView subclasses to make selected components accessible as separate elements. For example, a view might contain icons or drawn text that, to end users, appear and function as separate items. But because these components are not implemented as instances of UIView, they are not automatically accessible to users with disabilities. Therefore, such a container view should implement the UIAccessibilityContainer methods to supply accessibility information about these components to assistive applications such as VoiceOver.

我不熟悉 Unity 本身,但似乎可以破解包含 View 以支持可访问性 - 您可以构建一组 UIAccessibilityElemets 来代表屏幕上当前可见的项目。

关于ios - 如何为 iOS 版 Unity3d 添加辅助功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15274733/

相关文章:

audio - Unity3D-如何使纹理更改静音按钮/切换?

c# - 如何判断哪个对撞机发生了碰撞?

css - 字体/文本大小是否比 em 更易于访问和管理?

javascript - 在 Chrome 浏览器中检测高对比度扩展程序的使用

ios - UIActionSheet - "init"更改按钮样式

ios - SwiftUI 中的 WKWebView - 用户与网站交互时如何切换 View ?

ios - Swift 面向协议(protocol)编程 : Can Protocol Extension Property Have Same Name As Base Class Property

ios - 自定义 NSExpression 函数,例如 sin(x)

c# - 如何修改旋转变换的位置

jquery - HTML:通过名称属性将标签链接到输入