How to use the NEW Input System with Cinemachine in Unity

How to use the NEW Input System with Cinemachine in Unity

samyam

4 года назад

47,804 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@unbreadedGames
@unbreadedGames - 19.11.2021 03:14

It doesn't seem like they include the CinemachineInputProvider, so I suppose I'll have to reference the previous video

Ответить
@Sticks_Dev
@Sticks_Dev - 04.12.2021 11:15

That capsule looking kinda sus in the opening

Ответить
@user-em9su3dd9y
@user-em9su3dd9y - 10.12.2021 06:06

Oh perfect thanks!

Ответить
@joanlinan8931
@joanlinan8931 - 09.01.2022 02:06

super useful video!!

Ответить
@michaelkjellander9370
@michaelkjellander9370 - 19.01.2022 06:03

Thanks.

Ответить
@soma78
@soma78 - 23.01.2022 19:38

One problem though. Just as with your previous video on the topic, the player (mesh/ capsule) is not rotating, to follow the mouse/ camera direction. Any ideas on how to do that ? Thanks.

Also, would be awesome to see how to switch from 1st to 3rd person in game.

Ответить
@018FLP
@018FLP - 25.01.2022 07:49

Heeeey! I love your tutorials, they're really well done and cohesive. I had some issues, but then i unistalled and reinstalled everything and now it works like a charm! ;D

Ответить
@DSilvandoBlade
@DSilvandoBlade - 18.02.2022 17:19

Thanks for showing me how to do this but I have an issue with the camera. The camera seems way too sensitive now literally me just holding the mouse in my hand makes the camera wobble about. I tried playing around with the settings but nothing is working. Does anyone know what to do? This isn't a problem with the old input system it worked like a charm on there.

Ответить
@sora8291
@sora8291 - 22.02.2022 12:37

How do I make it so that I have to hold right click and drag to rotate the camera around? Ive been struggling with the new input system

Ответить
@Tcrakman
@Tcrakman - 25.02.2022 08:21

Thank you!!! thank you so much! been having this problem for a while.

Ответить
@efraimbudusan7921
@efraimbudusan7921 - 27.02.2022 16:26

Hello, Why did you use Cinemachine for this specific example? I mean what benefit does Cinemachine bring over setting directly a Camera's transform? Wouldn't it work the same way?

Ответить
@GeoRush1110
@GeoRush1110 - 09.03.2022 21:26

This was a Project Saver, Thank You!

Ответить
@Alejandroperez-vp1nd
@Alejandroperez-vp1nd - 18.03.2022 14:19

Sheesss you saved me! thank you so much!

Ответить
@GameEvolutionWenleiCN
@GameEvolutionWenleiCN - 24.03.2022 18:13

Thank you Samyam for providing this solution! Very helpful

Ответить
@satan1149
@satan1149 - 27.05.2022 16:10

thanks alot for this, really helped me out

Ответить
@XboxPlayerPL
@XboxPlayerPL - 03.06.2022 15:24

Input provider doesn't work in my case. Why is that case? I provide input action asset there.

Ответить
@halivudestevez2
@halivudestevez2 - 08.06.2022 21:34

again, you have saved me. thank you!

Ответить
@ASFilmStudios
@ASFilmStudios - 09.06.2022 18:50

thank yoiuuuuuu

Ответить
@drominus3875
@drominus3875 - 28.06.2022 02:20

Unity added a nice new Add Input Provider button. I had a strange bug where Mouse/Pointer X wasn't registering. To fix: Delete the Cinemachine camera and recreate it > Add Input Provider > Hook up to your Mouse look action.

Ответить
@CannabisTechLife
@CannabisTechLife - 29.06.2022 23:34

Thanks! Very helpful

Ответить
@diegocruz8187
@diegocruz8187 - 07.07.2022 04:20

I know it is a kinda old video, but how can I change the XY axis input dynamically? Ive tried setting it to an action but it keeps on saying that I can not convert an action into an action reference

Ответить
@freelancepakistangames7245
@freelancepakistangames7245 - 24.08.2022 18:56

Thankyou Samyam 👑

Ответить
@matanyamin1
@matanyamin1 - 01.09.2022 09:29

Thank you. Short and straightforward. Keep up the good work.

Ответить
@whitewerebear
@whitewerebear - 16.09.2022 02:48

This is great! works a lot!!

Ответить
@jmunozve
@jmunozve - 17.09.2022 17:37

Thank.. samyam.. yoo helpme, i am crazi search solution for that problem.. i loveeeeee !!

Ответить
@ryroio
@ryroio - 01.10.2022 02:44

Another LudumDare, another lookup of how to use the new input system.

Ответить
@velkyngame
@velkyngame - 02.10.2022 14:44

Hey, thanks for the great video. Do you know how I can add Mouse AND Controller support? Adding 2 input providers doesn't work.

Ответить
@msslamajama2
@msslamajama2 - 08.10.2022 18:49

how would I change the input provider its using mid game? Like if I wanted to change it from mouse controls to right stick controller controls. Whatever I try in script doesn't seem to work and I can't seem to change the XYaxis in it

Ответить
@NotARealPersonBR
@NotARealPersonBR - 15.10.2022 02:32

thx a lot for this

Ответить
@JSmithyP
@JSmithyP - 27.10.2022 22:29

Bit of a late comment but how would you handle player rotation?

Ответить
@vinotinto8547
@vinotinto8547 - 02.12.2022 15:02

NOICE

Ответить
@HerrBardo
@HerrBardo - 08.12.2022 02:19

Genia

Ответить
@AsTimeDilates
@AsTimeDilates - 24.12.2022 15:21

This video was amazingly well done. Super fast and super complete. I wish all tutorial had your rate and precision of explanation. Subscribed, thank you.

Ответить
@neozoid7009
@neozoid7009 - 10.01.2023 17:42

Awesome video . But how can I apply this method for a right gamepad stick instead of mouse delta?? Please help

Ответить
@drcrook1
@drcrook1 - 27.01.2023 19:45

I can't seem to get this to work with gamepad controls and the third person camera.

Ответить
@richardrothkugel8131
@richardrothkugel8131 - 21.02.2023 06:04

Great tutorial. The new input system confuses the hell out of me.

One thing. How do you only rotate the camera when the right mouse button is held down. I just CANNOT figure out how to do this with the new input system. A quick explanation would be greatly appreciated.

Ответить
@RyanShappa
@RyanShappa - 22.02.2023 20:15

This video is super awesome and very straightforward! The only question I have is: How can I get my character to rotate with the mouse input since it's coming from the cinemachine component? How can i get the mouse values to make the player rotate per the input values?

Ответить
@donkeykong315
@donkeykong315 - 28.04.2023 00:35

Sus player model

Ответить
@makcings4764
@makcings4764 - 13.07.2023 08:09

Idk why but when i use Virtual camera for first person with this method its so snappy, its like camera rotation teleporting bits by bits. can anyone help me?
Edit: i partially fixed it. the Input System package was already set at dynamics update,
but i also had to change the updates on Cinemachine Brain both late update.
and in Virtual Camera i used Input Gain rather than Max speed.
now its smoother but at slower speed its still snappy. still need help.
Edit2: Smaller Input gain helped with damping the snappiness at slower speed.

Ответить
@angelrubiov
@angelrubiov - 18.07.2023 23:28

Thankssss 10/10 :)

Ответить
@wahebplays
@wahebplays - 29.07.2023 15:30

well done .
but i want to create canvas of Look its not working for me . its not copying delta[mouse]

Ответить
@SyedHammadZada
@SyedHammadZada - 28.08.2023 18:04

How to do that with touch screen instead of mouse and making it within the right half of mobile
screen?

Ответить
@Hattori_Fujiyama
@Hattori_Fujiyama - 24.02.2024 19:32

i wish they would let you change the y axis to allow mouse scrolling.. kinda of useless the way it is tbh.. it seems like you are unable to edit the input provider script too.. guess ill be writing my own from scratch anyways..

Ответить
@SumuGamesY1234
@SumuGamesY1234 - 10.04.2024 17:50

Sam, how are you? I speak Spanish.

I use translator I hope you understand.

I have a problem when moving my character, the camera moves but my character does not move with the camera, it does not rotate with the camera

Ответить
@SumuGamesY1234
@SumuGamesY1234 - 10.04.2024 18:00

Also in the freelock camera I cannot modify the body and put the hard to lock, that option is blocked and stays in orbit

Ответить
@SumuGamesY1234
@SumuGamesY1234 - 10.04.2024 18:00

you help me please ?

Ответить
@pauld1241
@pauld1241 - 05.06.2024 20:58

Thank you!

Ответить
@fzycold8652
@fzycold8652 - 14.06.2024 23:48

I am sorry but it doesnt even work with virtual camera, I tried everything to solve this problem tried 3 different unity versions already, a week spent on this,

virtual camera doesnt work with new input system.

Ответить
@h2hjastermereel
@h2hjastermereel - 12.09.2024 07:47

Any chance of an updated version to work with Cinemachine 3.1.X and input system 1.9+.

Ответить