Very nice tutorial, thank you for the simple and clear explanations. Just in case for the viewers, if any of you got the issue that the circle was appearing on start and so broke the gaze functioning (in my case, it was breaking the FillAmount mechanic and was teleporting the Player instantaneously), just write the following line in the void Start field : imgGaze.fillAmount = 0; This forces the circle to be "unloaded" on start, and fixes it.
@pedrososo11615 жыл бұрын
Thanks for the video man, I've been looking for google cardboard tutorials but they are usually old
@xlaugts1515 жыл бұрын
Thanks Pedro, let me know if you have any suggestion for a video.
@pedrososo11615 жыл бұрын
@@xlaugts151 Hey! happy new year! Could you please make a tutorial of a simple multiplayer VR game? If it's possible
@xlaugts1515 жыл бұрын
Hi @@pedrososo1161, Thanks for the suggestion, this is on my list of tutorials I'm going to make. I just need to find a way explain the way people will understand, I also have to learn a bit more about it but I will definitely do it.
@freeju20015 жыл бұрын
@Xlaugts, you're amazing bro, solved my issue, have been lookin' out for this for almost 3 days and finally found you. Thanks a ton.
@xlaugts1515 жыл бұрын
I'm happy that helped you Manicka
@waihanlim66994 жыл бұрын
Simple and direct, good job!
@irinakuznetcova3545 жыл бұрын
If Unity doesn't register the Pointer Enter event (that is, you point at the object but nothing happens), try changing the Max Reticle Distance under Main Camera -> GvrReticlePointer from 20 to a bigger number. I bumped it to 100 and everything works now!
@xlaugts1515 жыл бұрын
Hi IRina, Good job! Thanks for sharing a solution with others and for watching
@axramharter5 жыл бұрын
Hi! I have the same problem. When the object is far away, nothing happens. Now when I set the max reticle distance to 100 it registers that I'm looking at a certain object and "fills the circle". But the teleportation/rotation doesn't happen. Any idea what I'm missing? Thanks
@xlaugts1515 жыл бұрын
Hi @@axramharter, Not sure what could be happening, I would have to create that again and see if I have the same error. I will try that again over the weekend and see if I can come up with something. Thanks for watching :) Cheers
@axramharter5 жыл бұрын
Xlaugts hey thanks but I already figured it out. The raycaster distance was set only to 10 ;)
@xlaugts1515 жыл бұрын
@@axramharter Good Job!
@casamar33935 жыл бұрын
Thanks a lot bro, did you know that you have saved me days of researching ?, again this is what I was looking for
@xlaugts1515 жыл бұрын
Thanks you Mohamed
@nissimhadar4 жыл бұрын
Very nice explanation. Thanks!
@andrewrichardson81445 жыл бұрын
Excellent. Very helpful. Thanks.
@xlaugts1515 жыл бұрын
Thank you for watching :)
@magicalwizard54373 жыл бұрын
Why do you stop making video :(. These videos helped me alot, thank you
@jasmineks104012 күн бұрын
i am completely new to unity. i have to create a gaze interaction with a game object. can you help step by step way to do the same ...starting from which packages to import.......please help me if possible today itself so that i have to submit a very small project within two days time as part of the workshop.
@doobieshii2 жыл бұрын
thanks for the vid 😀im having challenges when I test in Unity: My player doesn't teleport and I'm wondering what I did wrong. Any suggestions??
@Esil__5 жыл бұрын
would u make a video on making an audio play when u gazed the object
@frederickpormes2 жыл бұрын
hi, I made 4 cubes to teleport, but only 1 works, the rest can't teleport? can you tell me how to fix it? this is for my final project .. thanks before
@syarahabdullah34106 ай бұрын
hello can i ask, i saw the scene manager. where can i get it
@jonathanbarnard70234 жыл бұрын
Hi I need help, keep getting error code, Null reference Exception: object reference not set to an instance of an object VRGaze update. any one know why ?
@sangeanygc8705 жыл бұрын
does anyone know why I get an error saying "Comparison of floating point numbers can be unequal due to the differing precision of the two values" for imgGaze.fillAmount == 1?
@anficyon5 жыл бұрын
great video
@xlaugts1515 жыл бұрын
Thanks Nes
@takahashierik5 жыл бұрын
I followed your steps, but when I add the Teleport script there is no GameObject space to put the Player camera into. Also I'm using Unity 2017 instead of 2018 so I don't know if there is any difference Edit: nevermind, I was missing a semicolon. I'm new to coding so I still make rookie mistakes lol
@shitshow_13 жыл бұрын
Thanks man !
@_STRIKEMEDIA_5 жыл бұрын
Hi, i've got a question i made everything u show in the video, but when i wanna test the game, doesn't works at all i really need you help, anyways good video.
@_STRIKEMEDIA_5 жыл бұрын
plus, the reticle pointer doesn't gets bigger when i focus it on the cube
@xlaugts1515 жыл бұрын
Hi @@_STRIKEMEDIA_ , If the error is only on the phone try to have a look on this video here: kzbin.info/www/bejne/sJWxc42pf8mab8U I made a mistake on this video so on the one I am sending to you I show how to fix it and it will show on you phone
@_STRIKEMEDIA_5 жыл бұрын
Hi, the error is both on phone and pc the circle doesn't fillls up
@xlaugts1515 жыл бұрын
@@_STRIKEMEDIA_ There is any error showing up ??
@takahashierik5 жыл бұрын
@@_STRIKEMEDIA_ Mine wasn't working because I forgot to add the GVR Pointer Physics Raycaster to the camera. Hope this helps
@mtankians10044 жыл бұрын
need help. The gaze navigation didn't work. why?
@nursheilaziziumiza88924 жыл бұрын
Great video! just one question, i have error for the GetComponent Teleport object. Overall it looks fantastics.
@rodrigo.cs.machado4 жыл бұрын
The circle of "GvrReticlePointer" is not synchronized with the center of the camera, making me have to aim more up or down on the object to work. The circle is "running" more than "Draw debug ray". Can someone help me?
@andreaverna43565 жыл бұрын
Thanks a lot! I need your help. I've created the gaze input and I can see it fills the circle correctly. Now, I have 2 spheres and through this gaze I would transfer the camera from the first to the second sphere. Therefore I've put 2 events: the first one is the gaze loading (as per your video) and then the "changesphere (transform)". It works, however if I trigger the first event unintentionally, seeing the image with the cardboard, and then I look outside to avoid the transfer, the second event will be actived anyway. How can I solve it?
@xlaugts1515 жыл бұрын
Hey Andrea, Sorry for the delay. Do you have a discord ? You could show me what you are trying to achieve and I can help you. If you still need the help Thanks
@ethanjarveyocampo11994 жыл бұрын
Hello! I tried doing a gaze timer to scene transition, so I kinda just mashed what I got from both of your videos, which are pretty good imo! However, when I tried to do it, it bypasses the timer and goes straight to the next scene. I get this warning: "Using Raycaster (Raycaster: UnityEngine.UI.GraphicRaycaster, Object: Canvas). It is recommended to use GvrPointerPhysicsRaycaster or GvrPointerGrahpicRaycaster with GvrPointerInputModule. UnityEngine.Debug:LogWarning(Object) GvrPointerInputModuleImpl:CastRay() (at Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModuleImpl.cs:215) GvrPointerInputModuleImpl:Process() (at Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModuleImpl.cs:109) GvrPointerInputModule:Process() (at Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModule.cs:184) UnityEngine.EventSystems.EventSystem:Update() (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/EventSystem.cs:377) ". Could this be the problem?
@takahashierik5 жыл бұрын
How can I hide the reticle when not interacting with an object?
@xlaugts1515 жыл бұрын
The reticle pointer is part of the SDK we import so in order to do that we would have to change the RecticlePointer script and I don't recommend that. I am not sure how it could be done, but I will have a look Thanks
@anniehepburn94545 жыл бұрын
Thank you for the video, it's exactly what I am look for; I am having trouble getting it working though. Is there any way you could share the 2 scripts? I'm wondering if I just copied it wrong. Thank you!
@meltSTUDIO Жыл бұрын
Sad, the gaze is fine, but when its end i cant teleport. Help pls:(
@pavanbheesetty32075 жыл бұрын
Hello!!! your tutorial is great .It's just working in game view.When i build and run it in mobile that circular timer doesn't show up..I could only see reticle pointer but not the image that added as timer.Help me please!!
@xlaugts1515 жыл бұрын
Hey my friend, Thanks for watching. Yes, you're right it does not work. I fixed that on this video kzbin.info/www/bejne/sJWxc42pf8mab8U have a look, I talk about that. :)
@birthestubbe9315 жыл бұрын
@@xlaugts151 Hi, thank you for the great video. I had a look onto your next linked video here, but when switching to world space the image is not rendered anymore, neither on my Mac nor on my Android. I didn't change anything else. Any idea what I might have done wrong?
@xlaugts1515 жыл бұрын
@@birthestubbe931 I will explain how I did it and on my Android is working fine. I created a canvas as a child of the main camera, the render mode is set to World Space and I re position in front of the camera, I also removed the graphics raycaster of that canvas.
@birthestubbe9315 жыл бұрын
@@xlaugts151 perfect, I managed to get it running. Thank you so much for getting back to me. Great and inspiring work you are doing here!
@xlaugts1515 жыл бұрын
@@birthestubbe931 Thank you for the comment my friend :) I really appreciate it
@monojit1045 жыл бұрын
Ray ray = Camera.main.ViewportPointToRay(new Vector3(0.5f, 0.5f, 0f)); if(Physics.Raycast(ray, out hit, distanceofRay)) { if (imgGaze.fillAmount == 1 && hit.transform.CompareTag("Teleport")) { hit.transform.gameObject.GetComponent().TeleportPlayer(); } } Why if conditions does not occurs in my scripts? hit.transform.CompareTag("Teleport") does not work. Any suggestions?
@yavalang3 жыл бұрын
Ohh, so helpful, thank you! But for some reason, the filled image is visible in Game-view but not in Android device (VR).
@LeHieu-sr2kn Жыл бұрын
have you found the solution?
@krishnasampreeth4133 жыл бұрын
How to make a gaze virtual button in vuforia..
@supremebeme5 жыл бұрын
How to make gaze reticle pointer show only when player moves head for period of time?
@xlaugts1515 жыл бұрын
Hi Paul, Could you give me an example what are you trying to do? Thanks
@supremebeme5 жыл бұрын
Xlaugts I wanted to show reticle only when head moves and disappear when head stop moving but I figured out some other solution.
@xlaugts1515 жыл бұрын
@@supremebeme Great, could you share a solution with me ? There was some other guys asking me the same thing hahaha and I am not sure how to do it.
@JohnCraigFreeman4 жыл бұрын
Hello there, Thanks for doing these tutorials. I managed to get the gaze timer teleport working on Android, but then I tried to port it over to SteamVR and the same script only allows me to teleport once. Otherwise it works fine. Do you have any thoughts?
@dx01mirela725 жыл бұрын
Hi, first, thanks for the videos, it's just what I was looking for. I just have one problem, In Unity, everything is workig well, but in my smarphone the filling image just do not appears. Do you have any idea of what is wrong? Thanks
@dx01mirela725 жыл бұрын
Nerver mind, just saw the next video and make the changes on canvas. Thanks again.
@xlaugts1515 жыл бұрын
@@dx01mirela72 Yeah that's what I was going to send to you. Thanks for watching
@иваниванов-д2я4н3 жыл бұрын
@@xlaugts151 I guess I should have looked closer at the comments before asking my own question! ))) Gotta see the next video, as you said. Thanks for mentioning that!
@иваниванов-д2я4н3 жыл бұрын
Thanks for the tutorial! But I have a problem: it all work perfect while in Unity, but after I build and run the app, teleportation is fine, but the custom timer does not show, only the standard white dot and white circle. What do I do wrong?
@FreitagsKino3 жыл бұрын
How do you solved the Problem?
@MaximuszEsala5 жыл бұрын
hey man im really new to this after adding teleport part to vr gaze script i get this error on unity vrgaze.cs(32,63): error CS1003: Syntax error, ',' expected
@xlaugts1515 жыл бұрын
Hey Maximusz, This means some spelling mistake on your script. It might be something small like a , Have a look on your script and see if you can spot something.
@MaximuszEsala5 жыл бұрын
@@xlaugts151 hi there yes it was a spelling mistake i figured out !! thanks alot can you please do a tutorial on a small 2d mobile side scroller ? many would love to see
@xlaugts1515 жыл бұрын
@@MaximuszEsala Im studying how to do that now. Im finding an easy way to do that. I was off for a while now I have a list of tutorials, thats is a nice one to do it Thanks for the suggestion
@FouseyShort5 жыл бұрын
How can I implement drag and throw is its on update
@axramharter5 жыл бұрын
Hi! Thanks for the great tutorial! I realized that the interaction only works when I'm very close to the object. When I put the object far away nothing happens. Do you know how I can solve this problem?
@axramharter5 жыл бұрын
ok, found it out. the rayCasterDistance was set only at 10.
@mushyyuki4 жыл бұрын
@@axramharter Hi, i have the same problem. Can i know where to find the rayCasterDistance?
@axramharter4 жыл бұрын
@@mushyyuki Hi, I think I changed 2 values. The maxReticleDistance in GvrReticlePointer.cs and the distanceOfRay in VRGaze.cs. Both to 100. I'm not sure why I wrote "rayCasterDistance" because I cannot find this variable anymore. Let me know if it worked for you.
@mushyyuki4 жыл бұрын
@@axramharter Hi thank you for writing back. I cannot find distanceOfRay in my VRGaze so i just changed my maxReticleDistance to 200 and it work! Thank you so much!
@alacritysama27085 жыл бұрын
I use paint too, you know!
@xlaugts1515 жыл бұрын
hahaha thats the best :)
@littleangel63795 жыл бұрын
hi! first, thanks a lot for your videos, they are great and helped me a lot! i actually have a problem when trying to do this, indeed the reticule stays "big" i mean the red circle stays filled even when pointing at nothing when i try it (just like you do at 5:25min) it doesn't wait for me to point at the cube.. can you help me? thanks
@xlaugts1515 жыл бұрын
Hey My friend, thanks a lot. Did you check the fill amount if is set to 0 ? On the video I didn't do it because I wanted to show to the viewers. So if you point it to the object, nothing happens ?
@littleangel63795 жыл бұрын
Thanks a loot indeed it was the problem! keep on going your videos they are great!
@xlaugts1515 жыл бұрын
@@littleangel6379 if you look at the cube, is the reticle filling or not ? I need a bit more details just to make sure what part exactly could be the problem.
@littleangel63795 жыл бұрын
HP Gamer Dev so I manage to fix the problem an it’s perfectly working just as in your video thanks! Now I have another big problem, everything is working just fine on my computer but when I put it on the Android phone there no detection of the objects anymore.. the environment and the walk are okay but the reticle isn’t getting bigger nor filling.. any idea?
@littleangel63795 жыл бұрын
@@xlaugts151 and once i've build the app it also stop working on the computer.. really strange but at first it work on the computer, then i build the app in the android and it dosent work anymore, either on the phone or the computer 😅
@thediyadventure-studio5 жыл бұрын
it works great when I test it on unity editor but when viewing in cardboard, the gaze loader image is centered in middle of phone screen not sure how to fix this issue
@xlaugts1515 жыл бұрын
Hi Truong, Maybe try to re position the image and re scale ?? Thank you for watching!!
@bosskung2035 жыл бұрын
My RotateCube It doesn't stop spinning and Tag: RotateCube is not defined.
@xlaugts1515 жыл бұрын
Did you created the tag RotateCube and added to the cube?
@shuoyan72095 жыл бұрын
hello, great video! Could you share the RotateCube Script? Thanks so much!
@xlaugts1515 жыл бұрын
Hey Shuo, Thank you for watching. Have a look on this video and jump to 10 minutes you will have the code and you can copy kzbin.info/www/bejne/hXazaKaDrMuNpKc :) Sorry for the late reply
@shuoyan72095 жыл бұрын
@@xlaugts151 Thanks!
@bosskung2035 жыл бұрын
i need AutoClick by look on VR
@xlaugts1515 жыл бұрын
Hi Kotomi, Have a look on this video first kzbin.info/www/bejne/sJWxc42pf8mab8U I will try to explain how you could do it hahaha On the video I send to you I show how to interact with a button using gaze timer, you can use the same principle to do the autoclick. Look at the cube (or button) and the PointerEnter will call a function GVROn instead of doing that you could call the function you want it, if is to click a button or do something else. I hope that helps you. Let me know if its clear Thanks
@diniedyno26365 жыл бұрын
it's just grab 1 ball only. what if there's a lot of balls or boxes?
@diniedyno26365 жыл бұрын
how to make selection manager?
@diniedyno26365 жыл бұрын
Make vr tutorial selection item please......(o_0)😯🤓🙏
@anggisineru33185 жыл бұрын
Can you share your script ?
@xlaugts1515 жыл бұрын
Which script do you want me to share ?
@Music-lv8xf5 жыл бұрын
@@xlaugts151 the teleporter one, and can I ask question is it really needed to have a target object in order to teleport??
@kevin_kho5 жыл бұрын
Hello sir, i have a error on VRGaze. it says: NullReferenceException: Object reference not set to an instance of an object VRGaze.Update() error line 30: Ray ray = Camera.main.ViewportPointToRay (new Vector3 (0.5f, 0.5f, 0f)); what sould i do sir?
@xlaugts1515 жыл бұрын
Hey Kevin, Is it possible to share with me the project ??? Thanks for watching!
@kevin_kho5 жыл бұрын
@@xlaugts151 nvm sir. The problem is, the Main Camera should give tags "MainCamera". Another problem is the gaze timer image won't show in android. What should i do???