Proximity Selector World Space Button
Posted: Wed Jul 08, 2020 5:33 pm
Hey all,
I have a couple paths forward, but looks for suggestions on most elegant way to implement the follow:
My project is mobile and uses ClickToMove on a NavMesh. For interactions, I'm using ProximitySelector with Touch Enabled on legacy UI settings. I plan to convert to UGUI (with DoozyUI) elements.
How I'd ideally want it to work is when you are in proximity a world space UI Button appears above the object / NPC (such as a talking bubble icon above NPC) and then you click (or touch) using a raycast to touch point to trigger the Action (OnUse message).
I'm trying to work out the best way to handle this with as little overhead as possible, with as few added components as possible, and dynamic as possible so it's easy to integrate new interactables going forward.
Love to hear any thoughts especially what @Tony things!
I have a couple paths forward, but looks for suggestions on most elegant way to implement the follow:
My project is mobile and uses ClickToMove on a NavMesh. For interactions, I'm using ProximitySelector with Touch Enabled on legacy UI settings. I plan to convert to UGUI (with DoozyUI) elements.
How I'd ideally want it to work is when you are in proximity a world space UI Button appears above the object / NPC (such as a talking bubble icon above NPC) and then you click (or touch) using a raycast to touch point to trigger the Action (OnUse message).
I'm trying to work out the best way to handle this with as little overhead as possible, with as few added components as possible, and dynamic as possible so it's easy to integrate new interactables going forward.
Love to hear any thoughts especially what @Tony things!