安装好Unity Render Streaming后,发现官方案例在Web端无法通过鼠标操作进行控制,通过以下方法解决该问题。
解决方法一:
在Game面板中将Play Focused更改为Play Unfocused,重新Play&Web端刷新
解决方法二:
Edit-Project Setting-Input System Package 设置图中两个参数
将Background Behavior设置为Ignore Focus, 将Play Mode Input Behavior设置为 All device input always goes to game view
另外,确保Player-Resolution中Run In Background 是勾选的最后,重新Play&Web端刷新。
参考:Using with Input System | Unity Render Streaming | 3.1.0-exp.5