How to Make a VR Game in Unity 2022 - PART 2 - INPUT and HAND PRESENCE

Поділитися
Вставка
  • Опубліковано 13 жов 2024

КОМЕНТАРІ • 384

  • @Bromigo12345
    @Bromigo12345 Рік тому +82

    To remove the red line that comes out of your player model hands select "left/righthand controller"; scroll down on the 'inspector' tab till you see the script "XR Interactor Line Visual"; select the box so the check symbol is gone. The red lines should be removed now!

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

      I wish I saw this comment earlier I started deleting random things looking for it

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

      you can also disable the line renderer

  • @lumpsucker2184
    @lumpsucker2184 Рік тому +123

    This man has saved me from not being able to learn unity, he releases top quality, free tutorials like this so often. I recently had cancer and as I was transitioning from high school to college I could not do my GCSEs therefore I am on a level 2 IT course that is not what I want and does not cover this at all. Being able to access this freely is a true blessing

    • @hasanhaskovic4307
      @hasanhaskovic4307 Рік тому +4

      Hope you're okay.

    • @lumpsucker2184
      @lumpsucker2184 Рік тому +10

      @@hasanhaskovic4307 thanks bro, I'm in remission and it's not likely to come back

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

      @Fire-boyYT2009 can say now I’m cancer free yes, still got scans but no signs of it returning

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

      @@lumpsucker2184 a long life to you, and us all, brother

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

      ​@@lumpsucker2184Happy to see you're doing good now 😊

  • @Equoris
    @Equoris Рік тому +24

    To everyone who might be having trouble not getting any values in the debug console: Especially for the index, if you don't have the headset on, the input from the controllers also stops. It'll work once you put the headset back on....I was cursing a lot when I found this out :P (I thought the inputs aren't being captured, since I was testing by just holding a controller and pressing the trigger).

    • @donna2016..
      @donna2016.. 7 місяців тому +1

      you saved me a lot of frustration!!!

    • @tianzhi_he
      @tianzhi_he 7 місяців тому +1

      Thanks man this is super helpful. I was struggling too until I tried your method!!!

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

      Mine still doesnt give any results even with my headset on and everything else working as it should. Any other suggestions on where to start?

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

      @@platinumsky845 Hey! Sorry, but I can't really tell you any further suggestions, I haven't really experimented with VR for several months now, and I also replaced my index with a Q3.

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

    Sur un coup de tête j'ai décidé aujourd'hui de me lancer dans la création d'un jeu VR auquel je pense depuis longtemps. J'ai franchi le pas grâce à tes tutos (je viens de terminer le 2nd) et j'ai hâte de continuer. Merci pour le taf !

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

      Avec grand plaisir merci d'avoir regardé le tuto :D

  • @Thunde21
    @Thunde21 Рік тому +10

    This is a great tutorial on a very important point, invaluable for all XR developers. You should be proud of yourself 👏

  • @elelskii
    @elelskii Рік тому +4

    Best VR tutorial for beginners I have ever seen! I will follow you to the ends of the earth!!

  • @loro615
    @loro615 Рік тому +4

    thanks man, this means alot. Im just 12 but ive kind of made a vr game. this tutorial was extremly easy to follow and i appreciate that.

  • @opreaandrei4012
    @opreaandrei4012 Рік тому +9

    For all of you who dont get values from the trigger button in the console. Add to the XR Origin an input manager and drag the xri default input action.

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

      I've already done that, but it still doesn't work

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

      omgggggg, thank you so much, had me thinking i broke it lmao

    • @evancrider6993
      @evancrider6993 2 місяці тому

      this is the best comment here it helped me after 30 minutes of trial and error

  • @carsextendedwarranty
    @carsextendedwarranty Рік тому +9

    To whoever doesn't want to watch this whole thing:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class HandAnimator : MonoBehaviour
    {
    public InputActionProperty pinchInput;
    public InputActionProperty gripInput;
    public Animator animator;
    // Update is called once per frame
    void Update()
    {
    float triggerValue = pinchInput.action.ReadValue();
    float gripValue = gripInput.action.ReadValue();
    animator.SetFloat("Trigger", triggerValue);
    animator.SetFloat("Grip", gripValue);
    }
    }

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

      life saver bro. thanks a million!

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

      thanks. i got lazy and its late

    • @4Aces.
      @4Aces. 10 місяців тому

      Dude. Thanks a million

    • @ytStrikez
      @ytStrikez 22 дні тому

      @@4Aces. I actually love u

  • @l.a.b.coders3390
    @l.a.b.coders3390 Рік тому +3

    this took me 4 months thank you i just found problem after so long

  • @SwordOfShaolin
    @SwordOfShaolin 2 роки тому +86

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class AnimateHandOnInput : MonoBehaviour
    {
    public InputActionProperty PinchAnimatinAction;
    public InputActionProperty gripAnimationAction;
    public Animator handAnimator;
    // Start is called before the first frame update
    void Start()
    {
    }
    // Update is called once per frame
    void Update()
    {
    float triggerValue = PinchAnimatinAction.action.ReadValue();
    handAnimator.SetFloat("Trigger", triggerValue);
    float gripvalue = gripAnimationAction.action.ReadValue();
    handAnimator.SetFloat("Grip", gripvalue);
    }
    }

    • @FlashH021
      @FlashH021 2 роки тому +5

      Mart you just help me with the grip thank you so much.

    • @shallowfy4737
      @shallowfy4737 2 роки тому +5

      saved so much time thank you man

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

      @@FlashH021 same

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

      It didnt even work

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

      @@FoxyTitan theres a typo in his code where he mispells "action" so if your copy and pasting it wont work

  • @NotRend3r
    @NotRend3r Рік тому +20

    For anyone watching this about a year later (in 2023), to disable the default controller model, search for controllers in assets. You should see a folder. Now, just uncheck both the prefabs in the folder, and I think it fixes that!
    Edit: you actually have to scroll down on the Left/Right Controller gameobject and then under xr controller script, go down to the model section then change the model prefab from XR controller right/left to none

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

      I need help

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

      @@mysticdonuts4365 what do you need help with?

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

      @@mysticdonuts4365 yes? anything I can help with

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

      You saved my life, thank you so much :')
      I searched for 30minutes, and I thought I never find how remove the default controller model
      Thank you again !

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

      @@yaourt6108 np, you're welcome!

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

    bro thank you so much for these tutorials its literally so helpful and easy to understand

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

    For people who have a Valve index headset, the headset checks if a head is inside (you can see inside at the top there's a little sensor). To disable this sensor, go to Steam VR setting, show developer settings, then go to the video tab and disable "Pause VR when the headset is idle". Meabe restarts the headset if needed.

  • @CaptLatAmerica
    @CaptLatAmerica 2 роки тому +1

    i am already finishing my unity grade ill be here in 1 month to learn all about the amazing world of vr dev😍😍😍

  • @AsahiStuff
    @AsahiStuff 2 роки тому +18

    Silly question, maybe, but what's the license on the oculus hands package ?

    • @exoboi4277
      @exoboi4277 2 роки тому +5

      They are free to use

    • @CombatCatYT
      @CombatCatYT 2 роки тому +6

      I think they are free for everyone to use, they want to make their consoles more popular so they don’t care about using their models

  • @ievgengolovin9724
    @ievgengolovin9724 2 роки тому +4

    Good tutorial, everything worked out!

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

    What if the Trigger value on 1:57 appears as NaN? Maybe I'm missing something?
    Edit: restarting Unity worked.... somehow. The animation is kinda quick, but other than that, great tutorial!

    • @thaariqahmed3983
      @thaariqahmed3983 6 місяців тому

      thank you bro

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

      @@thaariqahmed3983 That helped ! Thanks

    • @rashed43545
      @rashed43545 5 місяців тому +2

      you can just set the NaN to 0 and it will work and not be quick

    • @tsuom
      @tsuom Місяць тому

      thank you!

  • @eandrewdmonds
    @eandrewdmonds 8 місяців тому +2

    Assistance needed! I had trouble with a bit of this if you or someone could offer any advice, near 4:28 where you add the script line "public InputActionProperty pinchAnimationAction;" It didn't add the reference inside the engine like it does in the video. For reference I'm using unity 2022 and Microsoft visual studio. Any advice helps thank you

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

      Same issue here but on the 2021.3 LTS build. Any solutions yet?

    • @vALANrant
      @vALANrant Місяць тому

      did you save the file in visual studio?

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

    Thank you so much for all of your videos!

  • @donchucho-o5x
    @donchucho-o5x Рік тому +1

    Salut Valem! Super ta vidéo! Do you have any tips on how to add accurate coliders to the rigged hand? Should I add a capsule collider per finger to have something performant?

  • @Sanistorum
    @Sanistorum 2 місяці тому

    Yes lets go i finally finished part 2

  • @antonioluciano9693
    @antonioluciano9693 2 роки тому +1

    Hi, this tutorial works with oculus rift? great video by the way

  • @dominiquealpha-omega5322
    @dominiquealpha-omega5322 Рік тому +2

    Cette vidéo est aussi géniale que la première de cette série !

  • @blaytman8883
    @blaytman8883 2 роки тому +1

    YOU ARE A GOD

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

    This guy = Giga chad + W + Dani2.0

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

    Really good video but the hands aren't tracking and are currently stuck on the floor. Please help I followed step by step!

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

      You can put the hands model on the controller and not under it. That should fix it

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

      Did you find a solution? I'm facing the same problem

  • @karthickk50
    @karthickk50 2 роки тому +2

    Hi Valem can you make a tutorial for VR using UltimateXR it's a new VR SDK

  • @asleepcarpenter1879
    @asleepcarpenter1879 2 роки тому +1

    Thank you! Why don’t you publish videos like these on main channel to get more people to know?

    • @ValemTutorials
      @ValemTutorials  2 роки тому +3

      I wanted to separate my tutorials and my big project on a different channel. :)

    • @asleepcarpenter1879
      @asleepcarpenter1879 2 роки тому

      @@ValemTutorials as you wish, I think you deserve more views

  • @michaelcooper2781
    @michaelcooper2781 2 роки тому +1

    Just a heads up Valem, you didn't include the link for the tutorial on how to manually set up the animation in the description

    • @ValemTutorials
      @ValemTutorials  2 роки тому +1

      Thanks Michael, I'm going to add the link ! :)

    • @Arashi256
      @Arashi256 2 роки тому

      @@ValemTutorials I guess I see the playlist but not which actual video it is? Which video specifically please?

  • @thatoneguy6469
    @thatoneguy6469 2 роки тому +5

    Hey, on the “animate hand on input” component for my hand model, I don't have the “Hand Animator” option, can you please help me?
    EDIT: I'm having more problems now, I'm getting an error from your code that says "Assets\animate_hand_on_input.cs(30,6): error CS1513: } expected"

  • @bananastudiotheprogramer
    @bananastudiotheprogramer 2 роки тому

    Thats what ive been waiting for

  • @Tribolojaner
    @Tribolojaner 2 роки тому

    I cannot wait for the next episode to come out. ;)

  • @maikejason8907
    @maikejason8907 2 роки тому

    Thx bro u help a lot nice video ,itz amazing

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

    You are the god, thank you for your generous sharing!

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

    Great tutorial! But whenever I open the script for the controls it comes up with find an app in the microsoft store. I don't really know how do solve it.

  • @georgeyxu
    @georgeyxu 2 роки тому

    Really awesome! Thank you sooooo much :)

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

    Great Teacher!

  • @chnebleluzern
    @chnebleluzern 6 місяців тому

    Don't you have to assign the punchAnimationAction and gripAnimationAction Variables somewhere in the Interface or do they need to have exactly this naming?
    Plus you skipped how to add the "Grip Animation Action" to the Script @ 11:27

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

    Hey I'm needing some assistance. I followed your example with the coding part, but for some reason it's coming up as a debugging error.

  • @mr.oblivion
    @mr.oblivion Рік тому +1

    Help! (I’m using LTS 2022) when I play it the hands appear along with controllers and the animation doesn’t work

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

    Thank you 🙌

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

    My hands are not positioned right with my controllers. how do I fix this?

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

    Hey there! This is great! I have been following along with this tutorial and getting everything to work in Unity, but am having issues on the playing side. I am using an Oculus Quest 2 with a MacBook Pro, so I cannot use the link cable and instantly view the app. I am trying the Build And Run feature to deploy to my quest 2, but when I go to open the app in Oculus 2 I just get the 3x loading dots and nothing happens. Do you have any recommendations or know of any tutorials I can watch to fix this? Thank you!

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

      Go to project settings > XR plugin management > android and make sure to have a plug in providers set to Oculus !

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

    Hey Valem,
    I’m trying to move the Oculus hands onto the unity project and it keeps giving me an error in the Console. Any tips to fixing it?
    Thanks!

  • @TheCuteKyuubi
    @TheCuteKyuubi 2 роки тому +1

    Hello, how would I change what animation each button does, and how would I make it animate part of the hand if I put my thumb down onto my controller?

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

    hello valem the xr controllers are on the hand moddel when i play test the game how do i get rid of them ?

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

    Hey Valem, could you make a tutorial for hand tracking?

  • @totidokkan
    @totidokkan 2 роки тому +1

    Hey, i have a problem. There are no animator controllers on the hands so im stuck.

  • @REC_crazy
    @REC_crazy 2 роки тому +2

    Hey, when I try to add the grip animation to the coding it says, error CS0246: The type of namespace name ‘inputActionProporty’ could not be found (are you missing a using directive or assembly reference?) I’ve tried everything and nothing will work. Can someone please help me?

    • @myhelshik5844
      @myhelshik5844 2 роки тому

      Broo... Same problem showing for me! I'm still stuck on this problem for 2 weeks ig.

    • @REC_crazy
      @REC_crazy 2 роки тому

      @@myhelshik5844 I lost that game completely because of that problem, I hope you can find out how to fix it, I wasn’t very lucky🥲

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

      Try declaring namespace for input system "as Using UnityEngine.InputSystem;"

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

      you spelt property wrong in 'InputActionProperty' instead you said "Proporty"

  • @KrixerVR
    @KrixerVR 7 місяців тому +1

    Does anyone know why my unity is saying "The type or namespace name 'InputActionProperty' could not be found"?

  • @tordgaming3804
    @tordgaming3804 2 роки тому

    IK body with hand animations though? perhaps in the future?

  • @SasukeUzumaki-cu9op
    @SasukeUzumaki-cu9op Рік тому +1

    salut l'ami, à ton accent je me permets de te poser la question en français haha. penses-tu qu'il est faisable de suivre ton tuto sans savoir coder et en ayant jamais touché à unity ? merci de ta réponse

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

      I don’t speak French but if you’re still interested then definitely yes

  • @-SKULL-
    @-SKULL- Рік тому

    Wait, does the controller input for the right hand have to be copied to the left hand to both work?
    (edit) Oh ok, nevermind :)

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

    THANK YOU

  • @antshow-yt1352
    @antshow-yt1352 Рік тому +1

    and my hands cant move so please make a vid on how to fix the hands

  • @MoTivE-pw9hb
    @MoTivE-pw9hb Рік тому

    Amazing tutorial so far thank you! I got this all working but have an issue with mine as when i press the trigger button it isnt give me float value its either 1 or 0 as displayed in the debug console - so animation is instant either on or off rather than gradual animation change, how do i go about correcting this ?

    • @MoTivE-pw9hb
      @MoTivE-pw9hb Рік тому

      Just to update managed to resolve this issue now, it seems i had the wrong button inputs mapped instead of it being set to read Axis values it was on the button pressed setting - Just in case anyone has this issue in future too.

  • @micheldik8694
    @micheldik8694 2 роки тому +1

    Hello I got a question. I see your blue hands do not have the red lines. How to hide them? Thanks

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

      Bro I'm having the same problem

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

    The trigger inputs wont show up in the console and wont activate the animations? is there a solution for this?

  • @Melvin_gamingreal
    @Melvin_gamingreal 5 місяців тому +1

    at 10:35 i get an error saying "NullReferenceException: Object reference not set to an instance of an object
    AnimateHandOnInput.Update () (at Assets/AnimateHandOnInput.cs:22)"

  • @CarlosD7
    @CarlosD7 2 роки тому +1

    I can’t get the pinch animation to work with the trigger, is it because I’m using index controllers?

    • @thatoneguy6469
      @thatoneguy6469 2 роки тому

      Im having the same problem on oculus touch controllers, have you found a solution yet?

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

      it wouldnt be because you have index controllers because it works for me with index controllers

  • @DripyvrOfficial
    @DripyvrOfficial 4 місяці тому +6

    heres the script if you dont wanna write it
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class AnimateHandOnInput : MonoBehaviour

    {
    public Animator handAnimator;
    public InputActionProperty pinchAnimationAction;
    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
    float triggerValue = pinchAnimationAction.action.ReadValue();
    handAnimator.SetFloat("Trigger", triggerValue);

    }
    }

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

      Thank you so much

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

      thanks bro

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

      Wow nice job messing up my whole entire thing.

    • @DripyvrOfficial
      @DripyvrOfficial 2 місяці тому

      @@Sanistorum not my fault its the exact script this guy used

    • @Sanistorum
      @Sanistorum 2 місяці тому

      @@DripyvrOfficial i think he removed stuff

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

    If I would like that the pinch button would do index finger pointing how to do it?

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

    thanks mate

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

    You'rAMAZING !!!!!

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

    how come the hands only show up on the left eye screen on the Meta Qeust Pro and the hands don't show on right when all the settings are exactly the same???

  • @coolerbones
    @coolerbones 2 роки тому +1

    i've got a quick question. how would i make this a bool?
    float trigger = triggerAnimationAction.action.ReadValue();
    handAnimator.SetFloat("Trigger", trigger);
    i want to replace trigger with when the thumbstick is touched so it can move the thumb up if i don't touch the thumbstick, and then back down when i rest my finger on it.
    update: ok so i got the code to work by changing it to:
    bool thumb = thumbAnimationAction.action.ReadValue();
    if(thumb == true)
    {
    handAnimator.SetFloat("Thumb", 1);
    }
    else
    {
    handAnimator.SetFloat("Thumb", 0);
    }
    i just don't know how to set up the controls in unity. i don't know how to get the thumbstick to change the bool value to 1.

    • @LegoStudioAnimation
      @LegoStudioAnimation 2 роки тому

      very ez search it up or ask reddit

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

      chatGPT answer:
      float trigger = triggerAnimationAction.action.ReadValue();
      bool triggerBool = (trigger == 1.0f);
      handAnimator.SetBool("Trigger", triggerBool);
      This will set the Trigger parameter to true if trigger is exactly equal to 1.0f, and false otherwise.

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

    Trigger Value is not increasing in Console. but the value is increasing in XR Input debugger. i have 2021 and oculas quest 2, 256 gb

  • @Stinky0368
    @Stinky0368 2 роки тому

    I could not do the hand animations it was to confusing can you maybe explain the buttons to press pls

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

    Hey Valem, everything you showed in this video worked like a charm but for some reason, the pinch animation was snapping instead of animating like it should! Please, anyone help me!

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

      I don't know I'm having the same issue!

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

    One of my hands is not moving at all (I'm right after deleting the cubes and swapping them with hands) What do I do?
    EDIT: I went on with the tutorial, and the right hand actually animates both pinch and grip, but is not moving with the controller, actually looks kind of baked in the floor - but the values in the position are changing constantly, just as in the left hand.

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

    i dont have visual studio so can i still make animations for my hands?

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

    where is the video on how to make a blend tree?

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

    Hi , i have to add a different hands model and couston pose animation , What is the Process for that?

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

    Ty bro

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

  • @opreaandrei4012
    @opreaandrei4012 2 роки тому

    well, everything done perfectly, the value for gripValue or anything doesnt change ( remain 0 ) .... what can i do ? 100% did everything right :D

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

    The type or namespace name "Animator" could not be found
    How can I fix this?

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

    you didnt leave a link in the discription 2:06 :(

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

    I'm having a problem with the scripting at 4:13
    It won't recognize that input system is a thing, all I have is "abc" options no "( )" options

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

      Make sure Visual Studio autocomplete is enabled.
      In IDE, look to the right side Solution Explorer.. and choose "load projects"
      Inside Unity set your IDE
      Make sure Visual Studio have installed Unity addon

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

      @@pastuh thank you

  • @ScottWarnerMusic
    @ScottWarnerMusic 2 роки тому +3

    Hey Valem!
    Sorry to bother you, but I've followed this tutorial up to the part where we're trying to get the axis value from the trigger button to get printed out to the console. For some reason, my trigger axis values are not changing when I'm pressing them - The values being printed out to the console are repetitive zeros, and I've even tried swapping the pinch animation action reference to both the Select Value, and the UI Value, but none of them are changing the printed triggerValue to the console.
    One thing that's different for me here is that I'm using Valve Index controllers instead of the Quest 2 controllers. I'm wondering if perhaps that difference is why the values aren't being changed - Do you know what might be the problem? =X
    Thanks!

    • @azialtgold5890
      @azialtgold5890 2 роки тому +2

      The same thing happened to me. I just deleted the script and component and redid everything and it worked

  • @antshow-yt1352
    @antshow-yt1352 Рік тому

    your tuts are helpful thanks but for some reason it wont let me type for the hand animation

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

      do you have vsc installed?

  • @prajjwalnataraj4803
    @prajjwalnataraj4803 2 роки тому

    Will this script work if I'm testing the game using XR Simulator instead of headset?

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

    it says "Animator' does not contain a definition for 'setFloat' and no accessible extension method 'setFloat' accepting a first argument of type 'Animator' could be found (are you missing a using directive or an assembly reference?"

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

    When I go into the game I can only see my hands through one eye. Is this normal or can I do anything to fix this?

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

    for some reason my hands either go with grip animation for both inputs or pinch for both inputs, how do i fix this?

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

    Hello, really helpful video. But I am unable to play it in the Oculus in the run time, I have to make a build inorder to execute it in Oculus, Any suggestions?

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

      do you have your oculus mask connected with cable(physically and turned it on in headset settings?)

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

      Make sure Oculus app is working, headset developer mod enabled, Link via cable activated

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

    Hello, I have been following your tutorial step-by-step until the part where you start coding the hand animations. after I save the script nothing changes and it looks the exact same from when I didn’t add anything to the script. If you have any idea how to fix this, please let me know. Thank you!

    • @俗頭-t5s
      @俗頭-t5s 11 місяців тому

      i have same issue
      look at visual studio "Explorateur de solutions" it will tell you install something
      when it done maybe can solve it

  • @matsGT
    @matsGT 7 місяців тому +1

    the animate hand on input thing doesnt work for me :(

  • @thaFoxy
    @thaFoxy 2 роки тому +3

    Full script with the primary Button:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class HandController : MonoBehaviour
    {
    public InputActionProperty indexAnimationAction;
    public InputActionProperty gripAnimationAction;
    public InputActionProperty PrimaryButtonAnimationAction;
    public Animator handAnimator;
    void Start()
    {
    }
    void Update()
    {
    float triggerValue = indexAnimationAction.action.ReadValue();
    handAnimator.SetFloat("indexAnimationAction", triggerValue);
    float gripValue = gripAnimationAction.action.ReadValue();
    handAnimator.SetFloat("Grip", gripValue);
    float PrimaryButtonValue = PrimaryButtonAnimationAction.action.ReadValue();
    handAnimator.SetFloat("Thumb", PrimaryButtonValue);
    }
    }
    make sure to follow Valem's VR New input system setup and this video so you can get this to work, and then you'll need to make a script named HandController, also you'll need to go on the samples folder, then XR Interaction Toolkit, click the numbers, then click starter assets and click over XRI Default Input Actions, once you do that, click on edit asset, go on lefthand interaction and click the plus button close to the Actions text, rename it to PrimaryButtonPressed, open it, and then go and click over the Path button, XR Controller, LeftHand,Optional Controls, then search for "primaryTouched", then click it, click the plus button close to the interactions text, and then select Hold. now you just need to add the HandController script to the hands and fill out all the things, go again on the XRI Default input actions and do the same thing that you've done on the XRI Left Hand Interaction for the XRI RightHand Interaction, except you'll need to select RightHand primaryTouched.

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

    the animate hand on input doesnt show up with the box selecting stuff after putting in the code and i followed all of it fully

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

    there's no link in description about the animator. Does anyone have it? Edit: NVM its in the package XD

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

    why can it be that the xr origin with the character controller falls to the ground, and does not remain at its height?

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

      a work around that I found helpful was adding an: "Additional Offset", Y=1. I am trying to share the article, but youtube has goony policy permissions.

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

    when i put the hands in the empty object i cant see them

  • @ansdummymail2024
    @ansdummymail2024 Місяць тому

    hi there,
    I can not see particles in my project, any help?

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

    while playing it showing parameter trigger and grip doesn't exit and please how to solve it

  • @Crypto_Reverend
    @Crypto_Reverend 2 роки тому

    Need help having trouble downloading XR Management plugin

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

    Is the starter assets and the hands model open source?

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

    the XRI Default Input Actions is not showing up in the animate hand thing

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

    when I added the new hands they didnt work I need help