Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointer interaction with world-based UI canvases #48

Closed
phr00t opened this issue May 12, 2016 · 9 comments
Closed

Pointer interaction with world-based UI canvases #48

phr00t opened this issue May 12, 2016 · 9 comments
Labels

Comments

@phr00t
Copy link

phr00t commented May 12, 2016

In my SteamVR game, I want players to be able to point a controller at a world-positioned UI canvas & use the trigger to click a button -- just like the player interacts with the official SteamVR interface. Is this possible with the current toolkit? If so, how is it done? If not, can this feature be added?

@thestonefox
Copy link
Member

Hey, I'm not sure if that would work (i can look into it though)

But I think the canvas sits on the camera view and not in the game world, so the pointer exists in the game world and points to game objects (that require a collider).

@phr00t
Copy link
Author

phr00t commented May 12, 2016

Check this project out:

https://github.com/VREALITY/ViveUGUIModule

It'd be nice if this was integrated with this toolkit!

@thestonefox
Copy link
Member

Cool, thanks for the link looks like a cool idea. I'll download it and check it out

@phr00t
Copy link
Author

phr00t commented May 12, 2016

If it significantly simplifies implementation, I don't think it is that important for players to be able to hit UI elements while not looking at them (as done in the ViveUGUIModule).

@thestonefox
Copy link
Member

I agree that being able to just use the UI elements for menu options is a lot easier than having to make up 3d objects that work as some sort of menu (which is how I've seen pretty much all games do it up till now)

@phr00t
Copy link
Author

phr00t commented May 13, 2016

Something related to this feature & using it in Unity 5.4:

http://forum.unity3d.com/threads/vrinputmodule-not-working-in-5-4.403381/

@thestonefox
Copy link
Member

@phr00t nice find! Good for reference.

@IARI
Copy link

IARI commented Jun 7, 2016

Thx @phr00t for that link - that one bugged me :)

@thestonefox I'm working on a non-game application using this toolkit with ViveUGUIModule.
It woul be particularly good, if Events were intercepted (and not called) when the raycast hits ugui.

I'll do what I can to support an integration.

@thestonefox
Copy link
Member

Completed with 5fa29d7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants