Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 Android 开发一个插件,它使用 Android jar 文件在 Unity 视图上方显示 Android 视图。
这很好,但问题是 Unity 没有将触摸事件传递给我的视图。
如何从 Unity 将触摸事件传递给我的视图?
找到了答案:
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
需要改为
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
在清单中