How to Setup a VR Game in Unity - VR Rig & Animated Hands!

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • Learn how to set up your first VR game in Unity using the XR Interaction Toolkit and ‪@ValemTutorials‬ animated hand package!
    Get the source code: / unity-vr-source-88131424
    Go check out Valems Tutorial Channel for an in-depth Unity VR Tutorial
    / @valemtutorials
    In this tutorial, we use the XR Interaction Toolkit to set up an XR Origin Rig and Animated hands so you can get started on your quest to make an awesome game!
    Next Video: • Grab Objects in VR usi...
    Package Link: drive.google.c...
    // JOIN THE COMMUNITY DISCORD!
    / discord
    // PLAY MY DAMN GAME ALREADY?
    play.google.co...
    // WEB DEV CHANNEL
    / tylerpotts

КОМЕНТАРІ • 96

  • @ValemTutorials
    @ValemTutorials Рік тому +26

    Hi man nice tutorial and thanks for the shoutout :D

  • @GamerPumpkin21
    @GamerPumpkin21 23 дні тому

    You are actually helpful and getting right into it unlike the other tutorials So thanks!

  • @franliendro
    @franliendro Місяць тому +1

    XR Controller doesnt exist in version 3, now its called TrackedPoseDriver, and you have to choose in Device the Generic Controller option, and in Pose Source: Left or Right

  • @beardordie5308
    @beardordie5308 Рік тому +8

    I'm following Justin P Barnett, Valem, VR with Andrew, Dilmer Valecillos, some others. Mostly at the moment I'm looking for guidance on how to gracefully use XR Interaction Toolkit while also incorporating the Oculus Interaction SDK to get the very best hand AND controller interactions. XRIT is a good base and is compatible with non-Meta devices, but if someone is using a Meta headset, the Oculus SDK has superior interactions compared to XRIT, so I'd love for them to be able to work together without conflicts or spaghetti code. Ideally there would be an official plan for that, which could hold up over inevitable SDK version updates.

    • @MuddyWolf
      @MuddyWolf  Рік тому +2

      I haven't tried it myself but it is something I've wanted to look into. I find an easy solution I'll create a video on it!

    • @cheryllockhart6195
      @cheryllockhart6195 Рік тому

      I swear that we must follow the same threads; the tutorial list is the same. I am still not successful... hence I am still searching

  • @felipeseverostudio
    @felipeseverostudio Рік тому +2

    Amazing, Thanks pretty interactive and easey to learn.

  • @esa0832
    @esa0832 11 місяців тому +3

    huu Easy to learn,, nice tutorial for me beginner

  • @MuddyWolf
    @MuddyWolf  Рік тому +1

    Let me know what VR tutorials you want to see next!

  • @waltspelarallt804
    @waltspelarallt804 10 місяців тому +6

    Right Controller is not in position😢

  • @danrac07
    @danrac07 11 місяців тому +6

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class Handanimcontrooler : MonoBehaviour {
    [SerializeField] private InputActionProperty triggerAction;
    [SerializeField] private InputActionProperty gripAction;

    private Animator anim;

    private void Start() {
    anim = GetComponent();
    }

    private void update() {
    float triggerValue = triggerAction.action.ReadValue();
    float gripValue = gripAction.action.ReadValue();

    anim.SetFloat("Trigger", triggerValue);
    anim.SetFloat("Grip", gripValue);
    }

    }
    update!

    • @InakiArzalluz
      @InakiArzalluz 7 місяців тому

      the update function has to be capitalized or it won't work. Change it from "void update()" to "void Update()"

    • @nakor3287
      @nakor3287 4 місяці тому

      i love you

  • @MorbidlyObeseYoshi
    @MorbidlyObeseYoshi 21 день тому

    my hands arent alinged with the controllers, anyone know a fix?

  • @AzoiVR
    @AzoiVR 7 днів тому

    I need your help, i dont have xri hand thingys for the controller. it so frustrating.

  • @waterbear4084
    @waterbear4084 23 дні тому

    In the console it says animator is not playing an AnimatorController. Then, when I play, it doesn't let me move my hands. I was wondering if you could help me with that.

  • @hackerhacker-bw6sl
    @hackerhacker-bw6sl 5 місяців тому +1

    unity test mode doesn't launch in vr mode help me

  • @allndall7126
    @allndall7126 Рік тому +3

    How do I make a Pointing Animation... that's to Point at Something

    • @MuddyWolf
      @MuddyWolf  Рік тому

      Good question, I will add advanced hand animations into my backlog of videos! For now you might want to check out "Valem Tutorials" channel as he has some videos that may help!

  • @VirtualRemi
    @VirtualRemi 2 місяці тому +1

    10:39 im stuck. how do you convert this code into unity?

  • @user-cn8ps6pm5s
    @user-cn8ps6pm5s 2 місяці тому

    you're the best (;

  • @troyhasausername
    @troyhasausername Рік тому +2

    it doesnt show the xr starter kit
    what do i do

    • @Shook1001
      @Shook1001 Рік тому +1

      Make sure you have "Unity Registry" selected in the Package manager

    • @neilpryde60
      @neilpryde60 Рік тому

      It appears to be a bug, as a workaround, open the package manager and click the + icon and choose "add package from GIT URL" the enter com.unity.xr.interaction.toolkit as the url.

    • @troyhasausername
      @troyhasausername Рік тому

      @@neilpryde60 WHAT PLUS SIGN

    • @troyhasausername
      @troyhasausername Рік тому

      @@neilpryde60 *icon

  • @BobaIsGud
    @BobaIsGud Рік тому +3

    Make a pt.2 where you can grab objects

    • @MuddyWolf
      @MuddyWolf  Рік тому

      Awesome idea, I'm on it!

    • @BobaIsGud
      @BobaIsGud Рік тому +1

      @@MuddyWolf Tysm :D im subscribing

    • @BobaIsGud
      @BobaIsGud Рік тому +1

      @@MuddyWolf I tried it myself, but I cant find the interaction toolkit manager

    • @MuddyWolf
      @MuddyWolf  Рік тому +1

      Hopefully today / tomorrow the interaction video will be out :)

    • @BobaIsGud
      @BobaIsGud Рік тому

      @@MuddyWolf ok :) thank you

  • @PoggersVR
    @PoggersVR 8 місяців тому

    Ive done all the steps but my hands pinch and fist animation wont work😢

  • @TactectG
    @TactectG 5 місяців тому

    when i click play and stand up the floor is at my waist how do i fix that?

  • @XFLGamesOfficial
    @XFLGamesOfficial 3 місяці тому

    im not set to my height im set to the floor?

  • @musiclyrics3752
    @musiclyrics3752 Рік тому +1

    I have a problem with my controllers/hands in unity. They will not move around no matter what I'm doing, and I have make all steps, but still not working. Someone who have a idea for why?

    • @MuddyWolf
      @MuddyWolf  Рік тому

      That's weird, what controllers / VR HMD are you using?

  • @4ndrito
    @4ndrito 8 місяців тому

    I cant get my hands to animate i followed the tutorial step by step any solution?

  • @ivanronnarvaez8930
    @ivanronnarvaez8930 10 місяців тому

    Hi can I ask on how to fix the movement in VR unity. I have a problem when i start the scene my character is moving backward even though I didn't move the controller it happens when i stop walking

  • @Dwrecktz
    @Dwrecktz Рік тому

    Can u please help me the script that I write keeps giving me null exception errors.

  • @nurgulkapdan1387
    @nurgulkapdan1387 Рік тому

    How to download Oculus hands how to make a VR game 2022?

  • @mileslamontagne5525
    @mileslamontagne5525 Рік тому

    I think I put the code in wrong because it's not giving me the options under the script. you mind just putting the code in the comments or something? I have a horrible disseize called extreme laziness.

  • @yawdiegamer7098
    @yawdiegamer7098 Рік тому +1

    Any plans to incorporate with finalik /vrik

    • @MuddyWolf
      @MuddyWolf  Рік тому

      I haven't thought about it but I'll take a look and consider it!

  • @The-bounty-hunter
    @The-bounty-hunter Рік тому

    it says thumb dousnt exist

  • @crewjays
    @crewjays 4 місяці тому

    Does it work for quest 3

  • @AJGsTV
    @AJGsTV Рік тому +2

    At 6:19 there's no presets on my end...
    What do?

    • @pinkcherry6001
      @pinkcherry6001 Рік тому +1

      Did you download the samples from the XR Interation Toolkit?

    • @AJGsTV
      @AJGsTV Рік тому +1

      @@pinkcherry6001 That's more like it. Thanks for the quick response.

    • @MuddyWolf
      @MuddyWolf  Рік тому

      Oh my bad, if I didn't mention the samples! :D Happy you found a solution!

    • @AJGsTV
      @AJGsTV Рік тому +1

      @@MuddyWolf You did. I guess I must’ve skipped ahead.
      I was a few steps in when I started watching.

    • @MuddyWolf
      @MuddyWolf  Рік тому +1

      @@AJGsTV oh good, I thought I explained it incorrectly!! good to hear!

  • @Alex-v6h
    @Alex-v6h Місяць тому

    of course the source code is locked behind a paywall on Patreon

  • @tp-project
    @tp-project Рік тому

    Whenever I drag the asset under the controller it crashes Unity. Any idea what is wrong? Using the 2022.7 editor

    • @MuddyWolf
      @MuddyWolf  Рік тому

      Hmm I've never used 2022 for VR I think I've only ever used 2021... I'll see if I can find anything on the issue.

  • @yessy-flores
    @yessy-flores 11 місяців тому

    i can't move the fingers, someone with the same problem?

  • @Steve-gi2yj
    @Steve-gi2yj Рік тому

    awesome. Sadly my hands that I got, didnt come with animator controller... anyway how i can get that?

    • @MuddyWolf
      @MuddyWolf  Рік тому

      If you got custom hands you'll probably have to setup the animations yourself!

  • @wizard_of_all54
    @wizard_of_all54 Рік тому

    dowlode doest work:::(

  • @tinachibane7119
    @tinachibane7119 Рік тому

    When I change the material to standard and try to change the material color, it remains pink. Is there a solution to this?

    • @8-BITDEV_YT
      @8-BITDEV_YT 3 місяці тому

      URP (universal render pipeline unity package)

  • @debramciver307
    @debramciver307 11 місяців тому

    i need help

  • @thefroogguy
    @thefroogguy 11 місяців тому

    so how do you get the hand animation package

    • @WASP001
      @WASP001 3 місяці тому

      its in the bio

  • @natalieminton88
    @natalieminton88 10 місяців тому

    I can’t do it it’s giving me 15 errors

  • @Shook1001
    @Shook1001 Рік тому +1

    Hey, did you ever make a video on how to grab objects?

    • @MuddyWolf
      @MuddyWolf  Рік тому +1

      I've recorded it, I just haven't had time to edit it! It's coming soon!

    • @Shook1001
      @Shook1001 Рік тому

      @@MuddyWolf Cool! Thank you so much!

  • @olivername
    @olivername Рік тому

    Why are they pick not white

    • @S70Xy_BonEy
      @S70Xy_BonEy 10 місяців тому

      You can change the color

  • @reviewercurto6666
    @reviewercurto6666 Рік тому

    it's saying that 'triggerAction' does not exist in the current context

    • @Dwrecktz
      @Dwrecktz Рік тому

      yea me to

    • @Dwrecktz
      @Dwrecktz Рік тому

      did u figure it out?

    • @reviewercurto6666
      @reviewercurto6666 Рік тому +1

      @@Dwrecktz Man I did, but I really don't remember. I'm using the vr unity template nowdays.

    • @Dwrecktz
      @Dwrecktz Рік тому

      @@reviewercurto6666 ok

    • @user-nm8jt4ws1s
      @user-nm8jt4ws1s 8 місяців тому

      the way to fix it is that everywhere in the code that's labeled triggeraction make it inputTriggerAction instead

  • @debramciver307
    @debramciver307 11 місяців тому

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class HandAnimatorController : MonoBehaviour
    {
    [SerializeField] private InputActionProperty triggerAction;
    [Serializefield] private InputActionProperty gripAction;
    private Animator anim;
    private void Update()
    {
    float triggerValue -triggerAction.action.ReadValue‹float> ();
    float gripValue = gripAction.action.ReadValue‹float> ();
    anim.SetFloat("Trigger", triggerValue);
    anim.SetFloat("Grip", gripValue);
    } i need help

    • @Peanut_Nutter
      @Peanut_Nutter 9 місяців тому

      float triggerValue = triggerAction, you wrote "-" ;)

  • @zaintahir487
    @zaintahir487 Рік тому

    Hi man will it work with any mobile vr?

    • @WASP001
      @WASP001 3 місяці тому

      idk but good question and no im just bored so im just commenting

  • @Zebra_furry
    @Zebra_furry Рік тому

    Hi man, I am making a VR game using your tutorial . After I made the script, when it was going through it never did. Can you make a tutorial on how to fix this?

    • @MuddyWolf
      @MuddyWolf  Рік тому +1

      Hey sorry I don't understand the issue? What exactly isn't working? I'll try my best to help, Thanks!

    • @Zebra_furry
      @Zebra_furry Рік тому

      @@MuddyWolf after I wrote the script, nothing showed up. I couldn’t do anything after that

    • @ronettvr
      @ronettvr Рік тому +1

      @@Zebra_furry you most likely forgot to save by clicking the save button in the script viewer

  • @guyfromlahore409
    @guyfromlahore409 8 місяців тому

    Bro you did not tell the connection process of oculus

    • @MorbidlyObeseYoshi
      @MorbidlyObeseYoshi 21 день тому +2

      you should know that if you want to make a vr game

    • @guyfromlahore409
      @guyfromlahore409 21 день тому

      @@MorbidlyObeseYoshi please don't remind me of this silly project