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
Hi man nice tutorial and thanks for the shoutout :D
Thanks Valem!!
You are actually helpful and getting right into it unlike the other tutorials So thanks!
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
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.
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!
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
Amazing, Thanks pretty interactive and easey to learn.
Glad you liked it!
huu Easy to learn,, nice tutorial for me beginner
Let me know what VR tutorials you want to see next!
Right Controller is not in position😢
Just 0 it's positions in the inspector :)
Reset
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!
the update function has to be capitalized or it won't work. Change it from "void update()" to "void Update()"
i love you
my hands arent alinged with the controllers, anyone know a fix?
I need your help, i dont have xri hand thingys for the controller. it so frustrating.
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.
unity test mode doesn't launch in vr mode help me
How do I make a Pointing Animation... that's to Point at Something
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!
10:39 im stuck. how do you convert this code into unity?
you're the best (;
it doesnt show the xr starter kit
what do i do
Make sure you have "Unity Registry" selected in the Package manager
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.
@@neilpryde60 WHAT PLUS SIGN
@@neilpryde60 *icon
Make a pt.2 where you can grab objects
Awesome idea, I'm on it!
@@MuddyWolf Tysm :D im subscribing
@@MuddyWolf I tried it myself, but I cant find the interaction toolkit manager
Hopefully today / tomorrow the interaction video will be out :)
@@MuddyWolf ok :) thank you
Ive done all the steps but my hands pinch and fist animation wont work😢
when i click play and stand up the floor is at my waist how do i fix that?
im not set to my height im set to the floor?
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?
That's weird, what controllers / VR HMD are you using?
I cant get my hands to animate i followed the tutorial step by step any solution?
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
Can u please help me the script that I write keeps giving me null exception errors.
How to download Oculus hands how to make a VR game 2022?
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.
Any plans to incorporate with finalik /vrik
I haven't thought about it but I'll take a look and consider it!
it says thumb dousnt exist
Does it work for quest 3
At 6:19 there's no presets on my end...
What do?
Did you download the samples from the XR Interation Toolkit?
@@pinkcherry6001 That's more like it. Thanks for the quick response.
Oh my bad, if I didn't mention the samples! :D Happy you found a solution!
@@MuddyWolf You did. I guess I must’ve skipped ahead.
I was a few steps in when I started watching.
@@AJGsTV oh good, I thought I explained it incorrectly!! good to hear!
of course the source code is locked behind a paywall on Patreon
Whenever I drag the asset under the controller it crashes Unity. Any idea what is wrong? Using the 2022.7 editor
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.
i can't move the fingers, someone with the same problem?
me
awesome. Sadly my hands that I got, didnt come with animator controller... anyway how i can get that?
If you got custom hands you'll probably have to setup the animations yourself!
dowlode doest work:::(
When I change the material to standard and try to change the material color, it remains pink. Is there a solution to this?
URP (universal render pipeline unity package)
i need help
so how do you get the hand animation package
its in the bio
I can’t do it it’s giving me 15 errors
And can’t get rid of them
Hey, did you ever make a video on how to grab objects?
I've recorded it, I just haven't had time to edit it! It's coming soon!
@@MuddyWolf Cool! Thank you so much!
Why are they pick not white
You can change the color
it's saying that 'triggerAction' does not exist in the current context
yea me to
did u figure it out?
@@Dwrecktz Man I did, but I really don't remember. I'm using the vr unity template nowdays.
@@reviewercurto6666 ok
the way to fix it is that everywhere in the code that's labeled triggeraction make it inputTriggerAction instead
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
float triggerValue = triggerAction, you wrote "-" ;)
Hi man will it work with any mobile vr?
idk but good question and no im just bored so im just commenting
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?
Hey sorry I don't understand the issue? What exactly isn't working? I'll try my best to help, Thanks!
@@MuddyWolf after I wrote the script, nothing showed up. I couldn’t do anything after that
@@Zebra_furry you most likely forgot to save by clicking the save button in the script viewer
Bro you did not tell the connection process of oculus
you should know that if you want to make a vr game
@@MorbidlyObeseYoshi please don't remind me of this silly project