如何为iOS3的Unity3d添加辅助功能

前端之家收集整理的这篇文章主要介绍了如何为iOS3的Unity3d添加辅助功能前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有没有办法通过Unity3d与iOS的VoiceOver辅助功能本机支持进行通信?我们有一个需要访问的应用程序,我们不确定如何去做.

由于我们需要语言支持,因此无法创建我们自己的自定义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本身,但似乎有可能破解包含视图以支持可访问性 – 您可以构建一组UIAccessibilityElemets来表示屏幕上当前可见的项目.

猜你在找的iOS相关文章