How To Make A VR Game in Unity - Complete BEGINNER Tutorial

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • 🎮 This is a wrap up of my How to make a VR game series cut to a single video for easier follow 🕹️
    🔹Asset Links🔹
    1️⃣ Unity Asset Store Free Asset: I will be using this great free asset from the Unity Asset Store in this tutorial: goo.by/f2w1f
    or
    assetstore.uni...
    2️⃣ VR Hands: You can download it for free from Google Drive here:
    goo.by/DMJ1V
    or
    drive.google.c...
    3️⃣ Target Dummy: goo.by/kw02N
    or
    assetstore.uni...
    ⏰ Timecodes:
    Don't forget to hit the like button if you find this video useful, and do share it with others who might benefit. For more content like this, make sure to subscribe and hit the notification bell so you won't miss any future uploads. Your support helps me to continue producing high-quality, helpful content! 📈🙏
    #unity #unitytutorial #virtualreality #VR #gamedev #madewithunity

Komentáře • 88

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

    This course is a total hidden gem.

  • @MrRayan67
    @MrRayan67 Před měsícem +1

    Great tutorial, thanks a lot !
    For those experiencing the issue where the first grab is not assigned to the proper location, it might be due to a newer version of XR Interactable. You need to switch the attach point compatibility mode from 'Default' to 'Legacy'.

  • @tyn3561
    @tyn3561 Před 10 měsíci +8

    Fantastic tutorial to get started using Unity VR. Great job mate!

  • @DarkLynxDEV
    @DarkLynxDEV Před 10 měsíci +4

    Honestly, this is such a fantastic tutorial to learn VR game development Very concise and informative. Oh and for the people saying "in Unity?!" blah blah blah. Unity is a TOOL and not everyone is looking to make studio level games. These skills can transition to other engines and languages. If you dont like Unity, just leave. We all know Unity screwed up.

    • @gamedevblueprint
      @gamedevblueprint  Před 10 měsíci +3

      Thanks, and yeah I have a similar opinion about Unity, I still think it’s the best to start with and after the principles are the same just a different environment.

    • @NaruteetheFodderPianist
      @NaruteetheFodderPianist Před 8 měsíci +3

      You're right. my university and probably many other research would use unity as their tool to carry out projects and research for VR/gamification related work.

  • @abubakrjajja
    @abubakrjajja Před 10 měsíci +5

    What a detailed tutorial. ❤

  • @daycorestudio9733
    @daycorestudio9733 Před 10 měsíci +6

    Hello! I've got a problem. I'm on the "Fixed XR Grab Interactable" script section and.... when I change the "grabbing" hand in play mode, the pistol first is not on the attach transform and the second time I use the same hand its go back to where it should, then I use the other hand... and these are reapeating. It is not a big deal, but could be nice if you could help me fit it. (Sorry for my bad english xD)

  • @singh0833
    @singh0833 Před 7 měsíci +2

    amazong tutorial, really appreciate it! Do you have any upcoming tutorials for creating mixed VR ?

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

      Thanks, well as soon as I get a Quest 3 yeah, but until then you can check out Valem or Valem tutorials, he made some of these I think

  • @wevelyn8726
    @wevelyn8726 Před 6 měsíci +2

    THIS IS AMAZING! Thank you so much

  • @sachinbaral1514
    @sachinbaral1514 Před 10 měsíci +3

    It would be really helpful if you can upload the scene that you made somewhere

    • @gamedevblueprint
      @gamedevblueprint  Před 9 měsíci +1

      I'm not sure I can due to the asset's EULA, but you are right, I'll share a trimmed down project without the assets.

  • @Ashina7
    @Ashina7 Před 5 měsíci +2

    SRY IT WORKS THX gret tutorial

  • @abdullaharif2492
    @abdullaharif2492 Před 3 měsíci +2

    great ❤

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

    I haven't got the dynamic attach on my attach transform can someone help please

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

    Amazing tutorial just 1 issue I dont have a VR headset and I want to test the game I dont know how?

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

      Well there is a video about it I think Justin P Barnett has it

  • @zakaulait5378
    @zakaulait5378 Před 11 měsíci +1

    Thanks you ♥️

  • @zenblue-bk
    @zenblue-bk Před 8 měsíci +2

    Hey you are doing amazing tutorial but I'm wondering if you use Bolt or playmaker instead of code. Is it possible? 😅😅😅 because I don't know how to code 😢😢😢

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

      same here can i use a different thing like this person said

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

      @@Dalzemonster1 or u learn coding

  • @putala
    @putala Před 7 měsíci +2

    Hello, is there anyone who solved the problem with the left and right weapon grip? 49:37
    The first time (after changing hands) the weapon attachment transformation is incorrect. After dropping the gun and picking it up again with the same hand, the position is correct. This is repeated with alternating hands. I am using Unity 2022.3.12f1
    @GameDev Blueprint, pls could you help us? :)

    • @Padz.
      @Padz. Před měsícem +1

      Same problem here, have you found a solution since then?

    • @Padz.
      @Padz. Před měsícem +1

      I've managed to found a solution
      using UnityEngine;
      using UnityEngine.XR.Interaction.Toolkit;
      public class FixedXRGrabInteractible : XRGrabInteractable
      {
      public Transform leftHandAttachTransform;
      public Transform rightHandAttachTransform;
      private bool isLeftHandSelected = false;
      private bool isRightHandSelected = false;
      protected override void OnSelectEntering(SelectEnterEventArgs args)
      {
      if (args.interactorObject.transform.CompareTag("LeftHand"))
      {
      if (!isLeftHandSelected)
      {
      attachTransform = leftHandAttachTransform;
      isLeftHandSelected = true;
      isRightHandSelected = false;
      }
      }
      else if (args.interactorObject.transform.CompareTag("RightHand"))
      {
      if (!isRightHandSelected)
      {
      attachTransform = rightHandAttachTransform;
      isRightHandSelected = true;
      isLeftHandSelected = false;
      }
      }
      base.OnSelectEntering(args);
      }
      protected override void OnSelectExited(SelectExitEventArgs args)
      {
      base.OnSelectExited(args);
      isLeftHandSelected = false;
      isRightHandSelected = false;
      attachTransform = null;
      }
      }

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

      @@Padz. Hi, still not :/

  • @vvsgucci8212
    @vvsgucci8212 Před 4 měsíci +1

    Hello! I need your help. I have a problem with your VR hands package. The hand material doesn't load in for the hands and it shows a purple placeholder material for the hands. The hands also don't animate and it only shows the hands on one of the eyes of the VR headset. I am using a HP Reverb G2 and not an Oculus headset. Is it because I dont have an Oculus that the Oculus hands don't work when I play the VR project?

    • @gamedevblueprint
      @gamedevblueprint  Před 4 měsíci

      Well first if it’s a purple placeholder it can be due to the render pipeline differences, you can convert it I show that in the video. Animation wise it’s needs to be set up but I also show that in the video. I think the render pipeline conversion will solve the other issues.

    • @vvsgucci8212
      @vvsgucci8212 Před 4 měsíci +1

      @@gamedevblueprint Hello gamedevblueprint, I found the solution. I realized I didn't select URP when I was starting the 3D project. Recreating the project resolved the problem. Thank you!

  • @user-to2yj6jl5t
    @user-to2yj6jl5t Před 7 měsíci +1

    At 6:16 I am not able to find left/right eye in play mode I have searched a lot. And also in scene mode I do not see green and blue arrows (X/Y/Z axis) anymore near the camera. Please help me out

    • @MorkusReX
      @MorkusReX Před 7 měsíci

      Did you figure it out?

    • @user-to2yj6jl5t
      @user-to2yj6jl5t Před 7 měsíci

      Yes@@MorkusReX We need to switch the platform to Android and also connect our VR headsets to the Laptop

  • @Landenkirby-FR
    @Landenkirby-FR Před 2 měsíci +1

    can you help me i cant find the component XR controller (action-base) at around 5 mins in
    the vid

    • @gamedevblueprint
      @gamedevblueprint  Před 2 měsíci

      @@Landenkirby-FR well check the version, because they have changed a lots of stuff in the last few months. Then you can downgrade it. I haven’t experimented with the new one yet unfortunately.

    • @Landenkirby-FR
      @Landenkirby-FR Před 2 měsíci

      @@gamedevblueprint i tried going to the one in the video and it was the same ill retry later thanks for the reply

  • @user-rh4of3gj4i
    @user-rh4of3gj4i Před 3 měsíci +1

    Excuse me for disturbing you. I followed your video, but the screen keeps scrolling down. Could you tell me how to fix it?

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

      Thats quite strange behaviour, could you tell me more about where it happens in the video?

    • @user-rh4of3gj4i
      @user-rh4of3gj4i Před 3 měsíci

      @@gamedevblueprint I followed your video instructions, but after completing it, I don't know why the camera keeps tilting downwards when I start the test.

  • @NagiTBN
    @NagiTBN Před 4 měsíci +1

    Up until downloading training dummies is when it started going downhill for me. Training dummies immediately dies when game starts and platform doesn't activates when player steps on it..

    • @gamedevblueprint
      @gamedevblueprint  Před 4 měsíci

      Well I think you missed the step where I set the animation speed to -1 so it plays backwards.

  • @anilraju0860
    @anilraju0860 Před 7 měsíci

    hai im unable to grab the objects and also dummy targets not in idle position when the game starts within secs it goes to dead position

  • @bennysensei4662
    @bennysensei4662 Před 5 měsíci +1

    6:12 how can you move around when running it? I cant :(

    • @gamedevblueprint
      @gamedevblueprint  Před 5 měsíci +1

      that comes later in the video, at that point we just set up the inputs for just the head position and rotation

  • @gnaneswaranlsc1821
    @gnaneswaranlsc1821 Před 9 měsíci +1

    Hello! I got a problem.. I done everything in the environment. but when i transfer as to apk in oculus.. the camera tracking is shaking.. like if i turn my head on left side it works completely fine.. but when i turn right side it doesn't work correctly the whole area is started to shake so i don't know what to do..

    • @gamedevblueprint
      @gamedevblueprint  Před 9 měsíci +1

      Hi! Uhh that is a tough one. I think I had similar one before and the problem was the cameras on the side needed cleaning. After that the tracking was fine. Have you tried other games? Did it do the same or not?

    • @gnaneswaranlsc1821
      @gnaneswaranlsc1821 Před 9 měsíci

      you mean .. Do I need to clean the right side of the camera.. ? Actually.. I got a multiple scenes.. more than 4 .. in my onescene it does work perfectly fine.. but in other side when i turn my head on right side it starts to shake the whole floor.. and another scene.. the right side is stable and the left side is shaking when i move the camera... i applied occulsion culling on the program.. and render only the visual part... still it does not working and i found that the fps is lower than 10.. so now i am searching the method to increase the fps rate without removing my models.. my environment is quiet big... @@gamedevblueprint

  • @evinroof8705
    @evinroof8705 Před 6 měsíci +1

    nice😀

  • @au5089
    @au5089 Před 7 měsíci

    why all my material upgrade are failed?

  • @madtim4219
    @madtim4219 Před 4 měsíci +1

    the best

  • @wdog14coffin79
    @wdog14coffin79 Před 6 měsíci +1

    im stuck 12:40 i cant find the code

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

      have you installed the New Input System asset in the package manager?

  • @MorkusReX
    @MorkusReX Před 7 měsíci

    At 2:50 , how come the resize pivot thing is at the center of the surface and yours is at the corner? Mine doesn't resize, it just moves the surface.

    • @gamedevblueprint
      @gamedevblueprint  Před 7 měsíci

      Under the Scene tab there is a setting, in the video mine is set to Pivot, yours probably to center. You just need to set it to pivot and it should work.

  • @Lucky_org
    @Lucky_org Před 4 dny

    6:03

  • @calledwarrior5047
    @calledwarrior5047 Před 7 měsíci

    At 49:37 I have the same problem but it is not the missspelling of the tags do you know what else could be causing it?
    I also have no errors so I don't know what is wrong.
    Otherthen that awsome tut so far!!

    • @Padz.
      @Padz. Před měsícem +1

      If it's the same problem as @putala, I've responded to his problem in is comment!

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

    I did everything but my Hand is not playing the grip animation

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

      Well the first thing comes to mind is make sure you’ve spelled the string variables correctly.

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

    Hi my screen on game mode doesn't work, any idea why the screen isn't moving

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

      Have you imported the input system template for the controls? Or the other could be that you haven’t added your device at the beginning to the XR management

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

      @@gamedevblueprint I've done both double checked everything, I also created two more projects it's the same

  • @Melanie_Q
    @Melanie_Q Před 4 měsíci

    28:00 무기

  • @user-nj9nc6qb7y
    @user-nj9nc6qb7y Před 9 měsíci

    Can you release the Project completed in unity?

  • @D1Ghost_
    @D1Ghost_ Před 7 měsíci

    In 14:03 I only see the script and no grip reference, why is that?

    • @gamedevblueprint
      @gamedevblueprint  Před 7 měsíci

      have you wrote [Serializefield] in front of the InputActionReference? or you can set it to simply public

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

    not working bro % hours work and nothing works

  • @darrienxavier5536
    @darrienxavier5536 Před 4 měsíci

    what do we do if we don't have a vr headset 6:19

  • @messapatingy
    @messapatingy Před 7 měsíci

    At about 7:45 it stops feeling like a "Complete BEGINNER Tutorial"

  • @user-re5wd1cy1v
    @user-re5wd1cy1v Před 7 měsíci

    please make this proper game like adding features like enemy ,player defence, player health etc please it's a humble request

  • @JokPoop
    @JokPoop Před 9 měsíci

    FAILED TO LOAD VR HANDS. I'm stuck

    • @gamedevblueprint
      @gamedevblueprint  Před 9 měsíci

      What do you mean it failed to load? Like the package has not been imported or the visual doesn't load when starting the game?

    • @BrickBody01
      @BrickBody01 Před 9 měsíci

      @@gamedevblueprint cant open link in description

    • @PenguinAWord
      @PenguinAWord Před 9 měsíci

      @@gamedevblueprint none of the links are working

    • @gamedevblueprint
      @gamedevblueprint  Před 9 měsíci

      I've added alternative links to it, but the original ones are working for me even on a different computer in incognito mode, so I'm not sure what is the issue

    • @PenguinAWord
      @PenguinAWord Před 9 měsíci +1

      @@gamedevblueprint Thank you bro, you are real for that.

  • @Smarglenargle
    @Smarglenargle Před 11 měsíci +1

    in UNITY?! 🗿

    • @gamedevblueprint
      @gamedevblueprint  Před 11 měsíci +2

      Yeah I know, but for beginners I think it's still the easier way to get into game development.

  • @Evaisa
    @Evaisa Před 11 měsíci +4

    nahhhh my ass ain't gonna touch unity with a 10 foot pool after the recent bullshit 💀💀💀

    • @gamedevblueprint
      @gamedevblueprint  Před 11 měsíci +1

      Yeah I understand, it's a really bad move from them, reminds me of politics. I think what will happen is they will introduce a much "better" deal compare to this one and it will look "good". But it is still discusting. I love that the developers stood together against this act. I hope they won't back down even an inch.