Unity VR Game Basics - PART 5 - XR Ray Interactor in 10 Minutes

Sdílet
Vložit
  • čas přidán 16. 07. 2024
  • This video, we'll deep dive into the XR Ray Interactor!
    You can download this Github project to follow along!
    github.com/Fist-Full-of-Shrim...
    There is also a written tutorial found here.
    fistfullofshrimp.com/unity-vr...
    🍤Check Out My Patreon🍤
    / fistfullofshrimp
    0:00 Intro
    0:38 Scene Review
    1:04 Making a XR Ray Interactor
    2:18 Attributes of the XR Ray Interactor
    5:27 Making a User Interface (UI) for VR
    7:57 Specifying Rays for Different Interactions
    8:30 Audio and Haptic Events
    8:58 Outro
    Music Credits
    ------------------------------
    Floating by Smith The Mister Hey Yeah, by Smith The Mister
    Smith The Mister Smith The Mister
    Free Download / Stream: [No Copyright Music] Floating by Smith The Mister · Hip Hop & Rap + Calm
    Music promoted by Audio Library Floating - Smith The Mister (No Copyright Music)
    ------------------------------

Komentáře • 27

  • @sankgoku
    @sankgoku Před 2 měsíci +1

    thanks for properly explaining thinks in xr management now know know better thanks a lots
    😊😊

  • @mohitbhole6781
    @mohitbhole6781 Před 2 lety +6

    I think you have the best Unity tutorials for XR and Oculus Quest 2.

    • @FistFullofShrimp
      @FistFullofShrimp  Před 2 lety +1

      Cheers! Happy to help!

    • @yudisernandra2534
      @yudisernandra2534 Před 10 měsíci

      @@FistFullofShrimp Hello can you help me sir? If i grab the object, the laser interactor turn behind the scene i dont know where but the object grab properly with laser interactor.

  • @starbuck3980
    @starbuck3980 Před rokem +1

    Thanks, i needed this information

  • @skinwardmtb5709
    @skinwardmtb5709 Před 2 lety +1

    Loving the tutorials, I have yet to finish them all but I was curious as to how we would go about keeping the raycast from picking up multiple objects. I assume maybe a bool to check if we are currently holding anything, or something of that nature.

  • @ANUBIS_game_dev
    @ANUBIS_game_dev Před 2 lety +1

    you are amazing thanks al lot please make more

    • @FistFullofShrimp
      @FistFullofShrimp  Před 2 lety +1

      I really appreciate you saying so! Happy learning and cheers!

  • @somediedrank
    @somediedrank Před 3 měsíci

    save my day

  • @stewheart
    @stewheart Před 2 lety +2

    I like the content- anything demystifying all the settings is worth it . Couldnt get my UI interaction to work. If I find out the solution ill post it in here.

    • @stewheart
      @stewheart Před 2 lety +3

      If you have an existing project and having trouble getting the UI to work - check the 'EventSystem' Game Object - check against a default instance of it and deactivate any additional components, test. - mine had 'Input System UI Input Module Script' which stopped the interaction

    • @FistFullofShrimp
      @FistFullofShrimp  Před 2 lety

      Solid work figuring this out. Cheers! It'll help so many others who run in to this problem in the future.

    • @stewheart
      @stewheart Před 2 lety +1

      @@FistFullofShrimp great minds think alike! Much appreciate your channel 👍

    • @kilasracingfactory
      @kilasracingfactory Před 10 měsíci

      incredible, thank you so much for posting the comment and the follow-up. I nearly clawed my eyes out searching for an solution.

  • @specter_vr
    @specter_vr Před měsícem

    Umm I am having a problem the left and right controllers are not in the camera offset

  • @kMuhammadFaizanSadiq
    @kMuhammadFaizanSadiq Před 5 měsíci

    hey i have a issue. my ray is interacting fine when i am on stationary ship but when i give speed to my ship and then interact with my UI in moving ship, ray gets shortened . i don't know why moving ship is causing my ray gets short.

  • @Sayuri.k-z3m
    @Sayuri.k-z3m Před rokem

    How do I make the button clickable without the rays ?

  • @suppon2754
    @suppon2754 Před rokem

    i have a problem where if i push a button on the controller, which is used for something else, i sometimes activate some buttons in the UI, this is annoying

  • @pravinpanwar
    @pravinpanwar Před rokem

    How to click on non ui objects with oculus controller?

  • @St4rl1ghtGT
    @St4rl1ghtGT Před 6 měsíci

    Hey, my hands use device-based controller scripts, so i just didnt put the xr controller script on my gameobjects, but it wont work, idk if its needed, but how do i fix this?

  • @SatoziEditZ
    @SatoziEditZ Před rokem

    Bro, my UI interactable is not working, although mh canvas had no problem and everything is same

  • @victorcalfatluzzi8286
    @victorcalfatluzzi8286 Před 6 měsíci

    Hello, I have 2 questions if you could help me out. I’m trying to build a simple VR app for a demo my boss wants to make but I have 0 experience with this, I’ve just done vfx my whole life.
    I was following a different tutorial and wanted to setup both hand tracking and controllers. The controllers worked fine but not the hand tracking after I setup the controller. So I don’t know how to make them both work, if you know what would possibly be interfering for that to happen.
    And the second thing is about this tutorial, for some reason my “ray” goes downwards after an inch of getting out of my hand so I can’t reach anything with it. And it’s set to straight line and I also increased the distance because my scene was scaled up a lot to match a UI project I imported that I was working on a different PC.
    Do you know why my Ray isn’t a Ray and more like a straight fall down, it’s almost like my Ray is being affected by gravity.
    Thank you so much for the time

  • @TheGameLecturer
    @TheGameLecturer Před 3 měsíci +1

    don't do this for your world canvas, keep them at scale 1 and change the width and height instead (it is now in meters) it's much cleaner

    • @FistFullofShrimp
      @FistFullofShrimp  Před 3 měsíci

      Thank you for this! I am known for screwing up my canvases from time to time.

  • @1979zeesh
    @1979zeesh Před 7 měsíci +1

    hi dude, very precise tutorial....it worked like magic except that my rays cannt interact with any objects....line changes to white when they are on interactable objects and vanishes when away but i cannt interact with objects...what should i check?

    • @FistFullofShrimp
      @FistFullofShrimp  Před 7 měsíci +1

      Off the top of my head, I'd check the XR Ray Interactor and make sure the Interaction Layer Mask is set to interact with the same Layer Mask as your interactable objects.