1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【修正済?】MRTK3でRayを利用したボタン操作ができない

Last updated at Posted at 2022-12-21

MRTK3の学習を行いながら作品を作っていた際
RayでのButton操作(Canvas操作)ができないことに気が付いたので調べてみました。

※ハンドトラッキングで直接ボタンを押す分には操作可能

試したこと

・Ray Interactor(csファイル)の設置→動作せず

・InputSystemの問題かと思い、EventSystemの旧バージョン、新バージョンをそれぞれ設置
 →動作せず

・Controller制御だったため、別のcsファイルで操作できるのかと思い検索
 →該当するcsファイルが見当たらず

結果

意図的に削除していたそうです(悲しい

■キャンバスのサンプル シーンでは、RayInteractor を使用した描画が許可されなくなりました
https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10886

ボタン操作は直接押す形で実装するしかなさそうです...

2023.1.02追記

新しく環境構築をしていたところ、問題なく動作することが確認できました。
MRTKが用意してくれているボタンの種類を変更しただけなのですが、もしかしたら
ボタンによっては反応しないのかもしれません。
詳細はまた調査していこうと思います。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?