microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

GestureManager to call OnSelect on focused object from Unity #81

Closed stbertou closed 8 years ago

stbertou commented 8 years ago

Hi all

Another small change that would make it easier to work straight from the editor. It would be great to call the "OnSelect" message when in the editor we either right mouse click or press a specific key (enter or space) like in the emulator. Any thoughts?

-s

NeerajW commented 8 years ago

@stbertou that sounds like a good idea. Would you like to implement this feature?

jwittner commented 8 years ago

@stbertou I'm all about solutions that match the emulator! =)

Subere23 commented 8 years ago

I have just been using void OnMouseDown(){

OnSelect();

}

Has worked well for the most part.

stbertou commented 8 years ago

OK no worries I'll put a pull request later today

stbertou commented 8 years ago

https://github.com/Microsoft/HoloToolkit-Unity/pull/83

btw sorry about that looks like the PR contains both kind-of related changes, next time I'll make sure to create a branch for each feature

NeerajW commented 8 years ago

83 added this functionality. Closing issue.