Expose Camera and Menu Open status to Udon
tracked
mahu
To create richer VR interactions in worlds it would be useful to know if the camera is in the player's hands and if the player is raycasting to the camera with their hand. Same for the on hand menu.
This would allow us to filter out trigger press input events from these hands when they should not trigger things in our world.
It could be perhaps be a generic sort of Player.HasUIOpen(Hand...) and Player.IsUIRaycasting(Hand...)
for both the camera and menu.
Log In
Hinnny
Another related issue here is https://feedback.vrchat.com/feature-requests/p/1137-add-a-parameter-which-shows-if-the-menu-is-opened ... I believe if that one were implemented, then the World SDK could simply read that animation state from a player in the world.
Having no built-in-way to determine whether an Action (Radial) menu or other menu is raised for a player is detrimental to both World and Avatar creators alike.
vavassor
Also may need to consider things like the personal mirror and portals interacting with raycasting. (And, if it gets released, the sharing pedestal from 5 sept 2024 developer update)
This post was marked as
tracked
vavassor
This ticket seems related. https://feedback.vrchat.com/udon/p/add-playerapi-property-for-has-menu-open We definitely need some way of knowing when the player is interacting with the world or not.
Jar
Please!
I would also like to know if the local camera is in photo mode vs stream mode,
local vs world anchored, and its position. This would make it super easy to do stuff for streamers to use, like custom spectator cameras, and maybe also prevent warn cheaters in game worlds.
Knowing if the quick menu or big menu are open or not would also be useful so that we can make out custom UIs (like the kind used in VKet and other big world) play nicer with the regular UI. I heard legit udon integration with the quick menu was announced at some point but it would be nice if we had this too.