Unity VR Tutorial - Button Gaze Timer Interaction

  Рет қаралды 20,822

Xlaugts

Xlaugts

Күн бұрын

Пікірлер: 114
@Apeles735
@Apeles735 8 ай бұрын
Great tutorial! You should put it on your "Unity VR Tutorials" playlist, so that people can find it more easily.
@shaycohen007
@shaycohen007 5 жыл бұрын
Great tutorial, you explain it clearly and in a simple way, like your other tutorials. Please make more tutorials👍
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Shay, Thank you very much for your support!!! It really makes me want to make more of them. :)
@freeju2001
@freeju2001 5 жыл бұрын
Thanks for t his too man. I really appreciate you for your awesome tutorials, with the help of this I would have complete my official project. Thanks a ton bro.
@xlaugts151
@xlaugts151 5 жыл бұрын
Im happy to help Manicka Raja
@christianruiz3777
@christianruiz3777 5 жыл бұрын
Edit: I finally did it. Once the image is on the project You have to select the image and then go the inspecto and change the Texture Type to Sprite (2d and UI). Now it works. Thank you. For some reason, I could not accomplished it completely. The image canvas won't let me drag and drop my personalized image and neither select it. I just can select some image that are by default there -a white dot. I tried Raw Image and there I can put my personalized image but won't appear Type of image option. What could be wrong. I deleted the raycaster script but it is the same. Anyway, each tutorial you have shared have brought me big steps forward for what I knew which was zero knowledge about all this VR scene. I learned a lot. You sound like a robot which is awesome! :D PD: can you please show how to go forward by looking at the floor? and how to grab different objects. I had an idea about grabbing photos and look them near to the player and then release to grab another photo.like a photo album. I followed your first tutorial but i just can grab one photo.
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Chris, Yes I can do that. I can officially say that I'm coming back so u can expect that on the next following weeks. I let u know once I publish the video
@NielsDielen
@NielsDielen 5 жыл бұрын
Thanks a lot for this tutorial, it worked perfectly with the scenechanger script :)
@xlaugts151
@xlaugts151 5 жыл бұрын
Thanks you Niels
@karolledzinski710
@karolledzinski710 4 жыл бұрын
...where is that script???? he didn't show on tutorial???/
@bianeytapia7622
@bianeytapia7622 5 жыл бұрын
Thank you very much, your work is great. Well explained, answer the questions, really congratulations because after a week, it has helped me out of the problems, boss success.
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Jane, Thanks very much for the nice words :)
@PedroRamirez-ej2ix
@PedroRamirez-ej2ix 4 жыл бұрын
Excellent video!! Exactly what I needed. Thanks
@supremebeme
@supremebeme 5 жыл бұрын
Awesome it worked perfectly!
@xlaugts151
@xlaugts151 5 жыл бұрын
Thanks Paul
@groversaulsoriagarcia2350
@groversaulsoriagarcia2350 5 жыл бұрын
Nice tutorial, Thanks
@xlaugts151
@xlaugts151 5 жыл бұрын
Thank you Grover
@dayannecristina9066
@dayannecristina9066 5 жыл бұрын
Hey, I loved your tutorials and this one specially, it works perfectly as you showed in the video. Thank you, keep up the great job! I have a question, is there any way to hide the red circle timer as soon as the scene starts? I mean, visually, not to show the red circle timer, only when you gaze the said button. I tried some stuff and it didn't work, in my application it would be clearer if the red circle wasn't appearing the whole time if you don't click the button.
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Dayanne, Thank you very much for the nice words :) I will keep it up. To not show the red dot just adjust the fill amount to 0, on the video I did that way for you guys to be able to see. Let me know if that works for you. Thank you :)
@dayannecristina9066
@dayannecristina9066 5 жыл бұрын
​@@xlaugts151 Yes, thank you, it really worked!
@qwerty84572
@qwerty84572 5 жыл бұрын
Nice Tutorial thanks
@ClydeOnPluto
@ClydeOnPluto 2 жыл бұрын
This works great, but I can't go back to the previous scene. How do I switch back to the previous scene?
@tatianaortegon2165
@tatianaortegon2165 5 жыл бұрын
Thank you very much, great tutorial.
@erlanggachakra1074
@erlanggachakra1074 4 жыл бұрын
i cant see the pointer / crosshair and the button isnt reacting at all
@afiqasri2404
@afiqasri2404 2 жыл бұрын
I'm tried following the tutorial steps by steps, but my circle wont fill, and it didnt do to another scene but there is no error , did i do something wrong ? I checked the script it seems fine.
@juliaj9647
@juliaj9647 2 жыл бұрын
Thank youuu so much
@carlo1478
@carlo1478 5 жыл бұрын
Great tutorial, it has helped me a lot. Would you like a video suggestion? I would like to know how to control the player through a bluetooth controller in virtual reality with Unity. The movements of the head would control the camera, and the movements forward, back, left and right would be made by joystick from bluetooth controller. Can you help me?
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Carlos, I had problem trying to connect my xbox controller with my phone via Bluetooth, I will try and see if I can figure it out another way to do it. If I find it I will let you know. For the movement I have a video about it kzbin.info/www/bejne/i3PSqKR9l79sl5Y I am also creating now a tutorial on how to Jump that is going to continue from that one. Thanks for you watching :)
@serveladik
@serveladik 2 жыл бұрын
For what reason to use World Space canvas, if it should be in the middle of the screen as UI?
@shazwan8386
@shazwan8386 4 жыл бұрын
where can i get the scene manager ?
@pipexo2
@pipexo2 4 жыл бұрын
hello, very good tutorial, I cannot understand in what video you show the script used in the scenemanager gameobject to change scene.
@pipexo2
@pipexo2 4 жыл бұрын
Found the script in a comment below, Thank so much bro
@spektrumcahaya
@spektrumcahaya 10 ай бұрын
Hi. Was wondering, can this work with Pico VR headset? or Vive?
@supremebeme
@supremebeme 5 жыл бұрын
Script in video has error, if timer reaches value 2sec it will call click invoke everytime. So you have to fix this script otherwise toggle very quickly. Any suggestions?
@supremebeme
@supremebeme 5 жыл бұрын
Just add gvrTimer=0f; before GVRClick.Invoke;
@beesiantan5509
@beesiantan5509 4 жыл бұрын
@@supremebeme I have this problem too
@thunderwubs3481
@thunderwubs3481 4 жыл бұрын
thanks for the video helps.but i have a problem the image wont lock on to the reticle
@Boy-cm8ec
@Boy-cm8ec 4 жыл бұрын
Hi, what is the script to load scene?
@hagar6908
@hagar6908 4 жыл бұрын
How would I make this but have the Player be able to walk around the plane?
@xlaugts151
@xlaugts151 4 жыл бұрын
Hi Hagar, Here I show how to make the character move in VR kzbin.info/www/bejne/h5jTk2iHr82ohck Have a look and let me know if got that done! Tnks
@junio22bk
@junio22bk 5 жыл бұрын
heiii thank you very much! this is the best tutorial on the internet! you explain it very well too! little question, Same as aldi, if i delete graphic raycaster component on the canvas like you did on the tutorial, the gazing interaction won't work, but if i keep graphic raycaster component on the canvas it's work perfectly. What's the sdk version are you using?
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Junio, Thanks for you comment. I was using this version GVR SDK for Unity v1.190.1 But I am not sure if I was using that on the video hahaha.... but great that you find a solution. Sometimes the update and things that was working before it just doesnt anymore. Like on the version I was using the OnClick event does not work, so some people are not being able to reproduce some of the things I show on my videos. Cheers!
@junio22bk
@junio22bk 5 жыл бұрын
@@xlaugts151 hahaha i know right, love your channels, keep it up dude!
@martinflores1774
@martinflores1774 5 жыл бұрын
Hi, how i can change the size of the pointer? Not the load pointer , the pointer to select . Thanks
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Martin, First thanks for watching. To do that go to the GVR Reticle Pointer GameObject and there u will find the script attached GVRReticlePointer, open it and you will find these variables public const float RETICLE_GROWTH_ANGLE = 1.5f; public const float RETICLE_MIN_INNER_ANGLE = 0.0f; public const float RETICLE_MIN_OUTER_ANGLE = 0.5f; You can edit them and see which suits you the best :)
@tteresajimenez
@tteresajimenez 3 жыл бұрын
Hi, I have a question, how can I change the selection if I have two buttons, for instance, I want that when I click button 1 a square appears but if I click button 2 the square desapears and a circle appears. Thanks, btw great video!
@wmqspmj7208
@wmqspmj7208 5 жыл бұрын
I already followed all the step except the plane/floor. Then my result on phone, the canvas that have button move and rotate by itself without i move the camera. The button keep moving and rotate like an Earth. How can i fix it ?
@hagar6908
@hagar6908 4 жыл бұрын
I followed this exactly and I can't look around. The circle fills and I cant do anything else.
@xlaugts151
@xlaugts151 4 жыл бұрын
Try to add the GVREditorEmulator to the scene, that enable the controllers to look around
@DenisTepp
@DenisTepp 4 жыл бұрын
Hello! Thank you for great tutorial but I have a problem in the end when trying to change scenes. The timer is working and the circle fills with color, but it does not change the scene when it's all filled. I release the button for the camera rotation and get the error message "MissingReferenceException: The object of type 'Image' has been destroyed but you are still trying to access it." Then it gets stuck in the same scene with filled circle and does not do anything. What am I doing wrong?
@DenisTepp
@DenisTepp 4 жыл бұрын
Ah stupid me. I forgot to add it in the Build Settings for all Scenes. I tried to change the time to fill the circle and changed GVRTimer to 10 instead of 2. It slows down the filling up but also waits 10 seconds before loading the scene (circle fills still too fast and then waits for about 8 secs). How to speed up the filling process but still change the scene at the moment when the circle is filled?
@xlaugts151
@xlaugts151 4 жыл бұрын
Hey @@DenisTepp, First of all thanks for watching. To reduce the speed try to multiply the Time.DeltaTime for something like 1.5f or 2f that will speed up the fill amount. Let me know if it works
@DenisTepp
@DenisTepp 4 жыл бұрын
@@xlaugts151 Yeah it is giving me right output. Thanks!
@xlaugts151
@xlaugts151 4 жыл бұрын
@@DenisTepp You're welcome!! :)
@allektes
@allektes 4 жыл бұрын
Hi, how would I be able to make it so on button click, i show a raw image that will be invinsible until the button is click?
@karolledzinski710
@karolledzinski710 4 жыл бұрын
Ok, everything works ;-)
@rickyindra1553
@rickyindra1553 4 жыл бұрын
I have changed the canvas into world space. But still not working on android Do i have to give gvr script to other object that i want to interact to? Like the teleporter
@hiabex
@hiabex 2 жыл бұрын
Hi, do you know if the GVR add-on/script is still current and working with Unity 2020, 2021? I'd watch the whole tutorial but time is of the essence and I've learnt that things move pretty fast when it comes to change in Unity. Thanks
@arianaalmaraz5510
@arianaalmaraz5510 5 жыл бұрын
Hello! can you Help me explaining me how to create the gameObject with the script for scene change, I think I'm missing something because in the options it doesn't appear the LoadScene :(
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Ariana, Here it is the script: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SceneChanger : MonoBehaviour { public void LoadScene(string sceneName) { SceneManager.LoadScene(sceneName); } } Once you add that script to a gameObject it's going to be a field asking for the scene name just add it and it's going to work.
@karolledzinski710
@karolledzinski710 4 жыл бұрын
@@xlaugts151 I created empty game object and adedd this script but it doesn't work.
@Gufis
@Gufis 5 жыл бұрын
Hello, i followed all your tutorials, they are great btw, but when ever i test to run it on my phone it get laggy and it give bad experience :( Maybe could you make a video about optimizing this game?
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Guffs thanks for watching. There are ways to do that I will do a video about it, I just need to find some time for it, but thanks for asking :)
@rafaelcarneiro8307
@rafaelcarneiro8307 4 жыл бұрын
Hello! Thanks for the amazing tutorial. I have a problem when I have to choose the function of the button in the GVR Button (6:09), where I only have two options: No Funtion and SceneAsset >> string name. How can I fix it?
@adibzikryyy
@adibzikryyy 4 жыл бұрын
same problem here! are you already solve it?
@wufei6593
@wufei6593 5 жыл бұрын
That is really helpful! Thanks a lot. can you also share the SceneManager script, cause I can not find that in Unity and other platforms.
@wufei6593
@wufei6593 5 жыл бұрын
Hi, I just read the message below and I have resolved it! That really helps and amazing! Thanks, bro!!!
@xlaugts151
@xlaugts151 5 жыл бұрын
@@wufei6593 Great job! Yeah I did share with someone here in the comments :)
@danishaffan_
@danishaffan_ 3 жыл бұрын
where is the script for the scene changer?
@juhainaahmed6090
@juhainaahmed6090 5 жыл бұрын
Hi. Thanks for the wonderful tutorial. I have a quesiton. How can I reset the circle to fill amount 0 once the onclick event of the button has been invoked., I am not changing the scene but may be changing the button text for example, in its onclick event. So once this is done, the filled up circle stays and does not reset to fill amount zero, so that I can gaze again at the button and see the circle fillinf up again. please help.
@0369500
@0369500 5 жыл бұрын
Hey Juhaina, Thanks for asking, I found a clever solution for that hahaha... You see that our button we Invoke the event Click right ??? So on the inspector of the button you have there the field where you added the scene changer with the scene name as you can see at 6:20 of the video. What you can do is click on the plus icon to add another event when the button is clicked, then you drag the image, the red circle into it. There you will have the option to choose image > Fillamount set that to 0. What is doing is when the button is clicked it will do the action that you want plus reset the value of the fill amount to 0 and the circle disappear. Let me know if you made it work! Thanks for watching! :)
@juhainaahmed6090
@juhainaahmed6090 5 жыл бұрын
@@0369500 thank you so mich for yoir reply. I will try this soon and let you know as Im on 2 days leave.
@xlaugts151
@xlaugts151 5 жыл бұрын
@@juhainaahmed6090 Great, let me know if you got it! :)
@juhainaahmed6090
@juhainaahmed6090 5 жыл бұрын
@@xlaugts151 Thanks! It works now!
@bernandomahulae4546
@bernandomahulae4546 5 жыл бұрын
good day sir can you make a video tutorial to make the virtual television and radio object and how to play and make a list of a video on the tv and a music in the radio please.. thanks for attention sir
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Bernando, Thanks for watching and the suggestion, the radio I think I have some Idea how to do it. I can probably make a video about it. I just need to see if works. I let you know soon as I get something, even if is not a video I share some tips how to do it ok ? Thanks again for watching!
@bernandomahulae4546
@bernandomahulae4546 5 жыл бұрын
HP Gamer Dev oke sirr thank youu.. 😊
@xlaugts151
@xlaugts151 5 жыл бұрын
;)
@yusamira6730
@yusamira6730 5 жыл бұрын
hey, thank you to help me. Btw can u share with me c# script abt scene change ?
@xlaugts151
@xlaugts151 5 жыл бұрын
Of course you can Here my friend: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SceneChanger : MonoBehaviour { public void LoadScene(string sceneName) { SceneManager.LoadScene(sceneName); } } Once you add that script to a gameObject it's going to be a field asking for the scene name just add it and it's going to work.
@robotiktasarm4333
@robotiktasarm4333 5 жыл бұрын
Is oculus quest working code?
@xlaugts151
@xlaugts151 4 жыл бұрын
Not sure, I only tested on my phone. :\
@omotolajoshua147
@omotolajoshua147 3 жыл бұрын
Where can i get the script to sceneChanger ?
@alecandreidc688
@alecandreidc688 3 жыл бұрын
The circle is not centered on the reticle for both left and right eyes. In the editor it is centered but when I try and run it on mobile it is not centered. Have you found a solution? Thanks in advance
@FreitagsKino
@FreitagsKino 3 жыл бұрын
Have you solved the Problem? I have the same issue
@alecandreidc688
@alecandreidc688 3 жыл бұрын
@@FreitagsKino kind of.. try adjusting the z axis of the circle (move towards or away from the camera).. i found it to be somewhere around z=10. anywhere below z=10 causes a double vision or "cross-eye", making the circle appear un-centered. let me know how it turns out for you
@FreitagsKino
@FreitagsKino 3 жыл бұрын
@@alecandreidc688 If i move z to more than 4, the circle will disapear behind my 3D Objects. Can i put the canvas in front of i?
@FreitagsKino
@FreitagsKino 3 жыл бұрын
Fix it. This is for the depth in world space: kzbin.info/www/bejne/q3itYn9mrdN4mJY Tanks for your help!!
@alecandreidc688
@alecandreidc688 3 жыл бұрын
@@FreitagsKino great find! another solution would be to create your own shader instead of using the built in google vr reticle shader. but that's another story
@aldiramdani5897
@aldiramdani5897 5 жыл бұрын
i have question , if i'am using gvr Pointer Physic Raycaster , it won't work , but if i'am use graphic raycaster it was work , can u tell me how to make it work using gvr pointer physic raycaster ?
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Aldi, Thanks for asking. Could you be more specific about your question? I am not sure if I got it right, sorry. :)
@bungbang-e9n
@bungbang-e9n 5 жыл бұрын
@xlaugts In the canvas settings for the button, You removed graphic raycaster and added GVR Pointer physics raycaster . How to work with graphic raycaster instead of GVR pointer physics raycaster?
@manikandankasi9633
@manikandankasi9633 4 жыл бұрын
May i see the scene changer script please
@pavanbheesetty3207
@pavanbheesetty3207 5 жыл бұрын
When i build it into mobile..It doesn't shows up even now
@xlaugts151
@xlaugts151 5 жыл бұрын
Did you position in front of the camera? and as a child of the camera as well
@pavanbheesetty3207
@pavanbheesetty3207 5 жыл бұрын
@@xlaugts151 it got solved..thanks.. there's an other issue... the reticle pointer isn't at same position in both splitted screens in mobile.even position is at (0,0,0).How to solve this?
@xlaugts151
@xlaugts151 5 жыл бұрын
@@pavanbheesetty3207 I am not sure how to solve that problem. Because it's trying to emulate a 3D so each eye it position different the reticle pointer. I can have a look and if I find anything I let you know
@pavanbheesetty3207
@pavanbheesetty3207 5 жыл бұрын
@@xlaugts151 thank you!! hope you find a solution to it
@xlaugts151
@xlaugts151 5 жыл бұрын
@Dm1try the problem you are facing is that the red dot not showing on the screen ??? Thank you for watching by the way
@salmanmajeed5265
@salmanmajeed5265 5 жыл бұрын
Gaze is not interacting with buttons.
@xlaugts151
@xlaugts151 4 жыл бұрын
Hi Salman, Is there any error showing on the screen?
@alecandreidc688
@alecandreidc688 3 жыл бұрын
add gvrPointerGraphicRaycaster, graphic raycaster is for UI while physics raycaster is for 3D objects with rigidbody
@abdulrafay9354
@abdulrafay9354 4 жыл бұрын
Brother its not working :') Need help!
Unity VR Tutorial - Gaze Timer Interaction + Teleport
10:46
[01] [Unity] Menu System for VR
16:08
VR with Andrew
Рет қаралды 69 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 10 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 74 МЛН
VR Gaze Interaction in Unity
21:43
Tomaz Saraiva
Рет қаралды 10 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,1 МЛН
Training AI Bots to Fight (they started dancing)
15:06
cozmouz
Рет қаралды 275 М.
Gaze Menu Interaction Virtual Reality With Unity 2017.3 & Google VR
27:43
Denys Gamers Tutorial
Рет қаралды 35 М.
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 4,9 МЛН
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,5 МЛН
My Experience Moving to Godot from Unity
16:54
DarkDax
Рет қаралды 24 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,4 МЛН
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН