User Interface and Curved Canvas - Oculus Interaction SDK - PART 6
Vložit
- čas přidán 4. 07. 2024
- How to interact with user interface in VR with poke and ray.
❤️ Support on Patreon : / valemvr
🔔 Subscribe for more Unity Tutorials : www.youtube.com/@ValemTutoria...
🌍 Discord : / discord
🐦Twitter : valemvr?lang=en
👍 Main Channel : / @valemvr
🔥 Tiktok : / valemxr
Download the Oculus Integration Package : assetstore.unity.com/packages...
PREVIOUS EPISODE : • Poke Interaction and B...
NEXT EPISODE : • Hand Presence with Con...
····················································································
📝Best VR Assets ( These links are Affiliate links which means it costs the same to you and I get a small commission. Thanks for your support!)
VR Interaction Framework
assetstore.unity.com/packages...
Hexabody (Physics VR Player)
assetstore.unity.com/packages...
Mirror and Reflection for VR
assetstore.unity.com/packages...
Auto Hand (automatic hand grab pose)
assetstore.unity.com/packages...
Hurricane VR (vr physics interaction)
assetstore.unity.com/packages...
3d Hand Model for VR
assetstore.unity.com/packages...
····················································································
Full Series on How to make a VR game • How to Make a VR Game ...
····················································································
If you enjoyed this video, here are some other really good channel you should appreciate :
⌨️ Game Dev
Brackeys : / @brackeys
Dani : / @danidev
Code Monkey : / @codemonkeyunity
👨🎓 Vr Dev
Justin P Barnett : / @justinpbarnett
Vr with Andrew : / @vrwithandrew
····················································································
#vr #vrdev #madewithunity #valem #unity
Pointable cylinder is now Cylinder Surface just to let you guys know!
Thank you!
Thanks man!
Thanks for the excellent tut! For anyone else struggling to get their canvas to show with the newer SDKs you may need to add a Mesh Renderer and OVR Canvas Mesh Renderer to your cylinder object and assign the proper fields.
CanvasMeshPointable is now PointableCanvasMesh. It still takes the CanvasCylinder, but now you have "Forward Element" fields which seem to work a bit differently.
For anyone who got stuck just like me, the following was my setup to make it actually interactable:
- PointableCanvas: Leave "Forward Element" empty.
- PointableCanvasMesh: Put the PointableCanvas reference into the "Forward Element" field.
- RayInteractable: Now has a "Pointable Element" field. Put the new PointableCanvasMesh reference into it.
The rest of the fields stays thte same, just like in the video.
Edit: Basically, the dependencies are reversed. So for the Poke interaction, you do the same. You have to reference the PointableCanvas ON the PokeInteractable, and not the other way around anymore. Leave the Forward Element of the PointableCanvas empty.
I don't even have CanvasMeshPointable
Ty Valem for awesome tutorials and ty K0hakuDev for your fix. Oh, you both dropped this - *hero cape*.
Your solution is very useful.
It’s very useful, thanks
I’m making a halo VR game and this is an absolute god send. Literally EVERYTHING I needed for a UI menu. God bless you sir! Your my hero haha
Thanks for this one, great job !
There is an example in the OCULUS>INTERACTION>SAMPLES>SCENES>EXAMPLES>RayExample where you can see the changes
Hey !
Thank you for this tutorial ^^
Do you know if its possible to have the cylinder vertex pointing outwards, so that the canvas can render on the outside side of the cylinder ?
I first though it was the "Facing" option on the "Pointable Cylinder" script, but it seems to only refer to the raycast collision (it says so in its source code).
If anyone knows >
Here comes the sun
Hey, I am trying to write a teleport locomotion for the oculus hand tracking system. And the basic systim i came up with works. But i wonder how you would trying to acomplish that. Furthermore i put the teleport function on the OnIndexPinch event but it would be way better to have something like a on indexFingerPointing event or something like that. May you could cover up something like that?
How big is the performance cost of the curved one compared to the regular?
Hello, thank you for making such a create content about how things get implemented in VR, however, I am having trouble lately with UI, since the Menu UI is often blocked by the objects in the scene, and I wonder if there are solutions for this.
Can you show how to setup multiplayer with oculus integration?
hi valem could you post a video about how does the game 'Cubism' on oculus work when player interacts with those pieces and get them together?I know it must have to do with socket.
Hey all. Has anyone else had the issue that in builds, the curved canvas isn't rendered? It did work before for me. I'm completely clueless as to what is causing this.
for curved canvas its only for oculus integration or can be used in openXR
nice, all things clear. i have question that about button that created in part 5 , How i can make it to call specific function ?
On the gameobject with the button, try searching and adding an Event Wrapper. Not sure what it's called exactly but I bet you'll find it if you search for "wrapper"
Then you can assign functions from there. I need to take a look at how I did it, if this was wrong I'll try to update 😀
EDIT: It's called the Interactable Unity Event Wrapper
Can you give a link to the instructions you used?
Also, github link to project would be really handy :) ..
Hello, your videos are wonderful keep it up.
One question: How can I check if an object is grabbed or not by a boolean variable?
All the best. ty :)
Hey i have an issue, when my ui gets projected on the cylinder it looks all blurry, why is that? also i can't interact with it
Thanks friend I can now make a 3d menu and health bars like sword art online but not doing it for VR just a third person project but it's not anime at all just wanted the menu like sao and health bars I'm tired of flat health bars in games
Oh wait fuck this is unity :(
Hello I failed review to publish my app functional 9 , about ability to recenter position of the player , Im using oculus plugin XR management , and could not find any answer to help with that :/ any Idea ?how to fix recenter issue
Hey, I have a proposal, can you make a video on a Game pause menu in vr ? I like your videos keep it up !
I need some help! When deleting Standalone Input Module and adding the Pointable Canvas Module to the Event System the UI Input Field stops allowing keyboard entry to the input field. I tried using the Input System UI Input Module with the Pointable Canvas Module, but it does the same thing. Also, when I disable the Pointable Canvas Module the Keyboard entry to the UI Input Field start working again. I am Running Unity 2021.3.16f1. Thanks 😀
Mostly got this to work but the scaling bug at the end is definitely bizarre.. I end up with a curved canvas and multiple UI elements, which is good, but I can only seem to interact with whatever control I put in the middle. I assume something is wonky with hacky transforms + resize. Regardless, cheers and thanks for the great tutorial series!
@Samuel Martins What I noticed is that the scale of the Cylinder and the CanvasCylinder should be 1. Then you can scale the size of the cylinder with the height and radius within the components. This fixed it for me, hope this will help others as well!
How show and hide canvas? like a pause menu
Would love to see this with a flat canvas.
flat canvas was in the end of the video.
@@lawrenauh Is there any way to do default ray interactables with flat canvas, instead of poke? I think that's what they were asking
With the canvas cyclinder you can set the vertices per degree. Setting this to 0 flatterns out the cyclinder
failed, my UI is not showing after the default setting, is there any other way to do this also my ui is not working as my hands are not interact with UI even increasing the size of it..
Hi, anyone know why hands tracking can't work in my project after building it? But it works well in editor.
It seems some big update realesed from Meta that this tutorial is not working anymore. I also couldnt find some components and even after I gave up for a curve canvas, the simple canvas was also not worked wthin the Valem instructions. Must look for another solution.
hello valem - i don't know if it has been changed to something else, but the box proximity field no longer exists... has it changed to something else? or did they remove it entirely?
if anyone could help with this it would be GREATLY appreciated as i need to figure this out for my project... i need to be able to poke a canvas as well as use a raycast...
Thanks for the tutorial!
I get a curved panel, but sadly the text is extremly blurry. Followd your tutorial to a T. Do you have an idea why its blurry?
Is the text TextMeshPro?
Hi! Anybody knows how to make ray interaction work on input fields and a keyboard input appear when selected?
How can you make pointable elements also grabbable? :)
want a tuto of scrolling menu,
what engine is this?
Hi, I have a problem finding Pointable Cylinder, even if I have Oculus Integration Package installed, can anyone help me?
same problem
same issue
I can't find a way to implement a flat canvas
Seem it doesn't work with XR Interaction Toolkit Ray
I have two problems, the trigger is in a large area around it, and if I put 2 elements, nothing works
Did you end up finding a fix to this? I have some buttons, but the area to click the button is off, like I have to go to the left of the button to click it, even though there's not the actual button there.....
@@aidenkimmerling7221 no solutions, I have a area in my canvas where the elements work, but not at the right scale (the detection area of a button works over the entire width of the canvas) and if I put elements in this area, nothing Does not work
@Florian Antoine weird....I did find a way to get a canvas working without it curved. I believe you change the Layers on Cylinder to UI or Default(the opposite of what is currently the selected layer), then go into the OVRCameraRig and look for CenterEyeAnchor, something like that. Check the "UI" part, there should be a dropdown somewhere, it should say "Mixed" on it. Then test it to see if it works. I dont know if it'll work, as I can't quite remember how I did it, but when I did that, the button scaling for me was correct.
there is no canvas render mode
Pointable Cylinder is not there in my Oculus Integration SDK it seems
Yeah even I'm unable to find the same. Stuck at this step for days.
@@IramKhan93 I have been stuck at this for weeks. I heard there is an example of this in the oculus SDK but I haven't found that either. If we can find the example this would be straight forward.
@@IramKhan93 Turns out there is a curved menu example in Interactions SDK. You don't need to do anything in this video as they already did it for you. Just drag and drop the curved menu gameobject and its children from that example and you are all caught up with the steps described in the video :) Took me just a few minutes.
@@vkapoor69 Thank you. This is helpful
better indicate which version of oculus integration the video is using, for the high frequency of the release make the processing so different and make us frustrating.
This version used was v38, it was hard to predict that the sdk would change this much.. :/
hello, valem, thank you very much. your videos are wonderful. but only one issue: speak to fast,and i can not follow your step on time. some steps too fast. i can not see clearly.☺
Man, if only this was done using only the XR toolkit, it would be golden.... still fantastic work, my dude
Outdated tutorial. No pointable cylinder component
now it's Cylinder Surface
Possible de faire tes vidéos en français ?
there is no pointable cylinder
do you find any fix for this problem?
now it's Cylinder Surface
Pls im begging