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.
谁能告诉我如何让模拟屏幕控制器跟随屏幕?我使用代码将其设置为 HUD,但旋钮对我的触摸没有响应,请帮助!
您可能会将控制器附加到场景中。这就是旋钮不工作的原因。
您应该做的是将控制器设置为您的场景的子场景
setChildScene(AnalogOnScreenControl);
现在它将起作用。