【问题标题】:Is there a way to activate a button press in unity XR using the interactor events有没有办法使用交互器事件在统一 XR 中激活按钮按下
【发布时间】:2021-04-27 08:09:09
【问题描述】:

有没有办法使用交互器事件在 unity xr 中激活按钮按下,而无需按下控制器按钮

【问题讨论】:

  • 到目前为止,我只能在按下触发按钮时让光线交互器点击,但我希望它在我将鼠标悬停在按钮上时点击。

标签: c# unity3d user-interface events virtual-reality


【解决方案1】:

我必须在按钮上添加一个指针输入事件才能使其工作。 Unity 按钮默认带有 onclick 事件,因此需要更改

【讨论】:

    猜你喜欢
    • 2023-01-04
    • 1970-01-01
    • 2014-01-24
    • 1970-01-01
    • 2022-06-14
    • 1970-01-01
    • 2020-01-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多