Unity Starter Assets In-Depth Overview | 1st & 3rd Person Controller w/ Input System & Cinemachine

  Рет қаралды 66,313

samyam

samyam

Күн бұрын

This video covers Unity's new First Person Controller and Third Person Controller Starter assets. The starter assets use the new Input System and Cinemachine.
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
sam-yam.itch.io/samyam-full-s...
We will go over downloading the assets, understanding the overall project structure, enabling the mobile touch joysticks and buttons, understanding the code behind the assets, and I will be suggesting improvements on how to improve the code.
*There are no Patreon source code project files because I cannot modify or distribute Unity Asset Store Packages 💻
Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!
📥 Get the Starter Assets 📥
(Recommended 2020.3 LTS and above)
ᐅFirst Person Controller
assetstore.unity.com/packages...
ᐅThird Person Controller
assetstore.unity.com/packages...
😎 Other Cool Unity Assets 😎
ᐅPeek - Editor Toolkit: assetstore.unity.com/packages...
ᐅEditor Console Pro: assetstore.unity.com/packages...
ᐅRainbow Folders 2: assetstore.unity.com/packages...
🤝 Support Me 🤝
Patreon: / samyg
Donate: ko-fi.com/samyam
🔗 Relevant Video Links 🔗
ᐅHow to use Unity's NEW Input System
• How to use Unity's NEW...
ᐅCinemachine's Built-In Screen Shake - Unity Tutorial
• Easy Cinemachine Built...
ᐅHow to Blend/Switch Between Cinemachine Cameras - Unity Tutorial
• How to Blend/Switch Be...
ᐅLocal Multiplayer with NEW Input System - Unity Tutorial
• Local Multiplayer with...
⏱️ Timestamps ⏱️
0:00 Intro
0:24 Download Packages
1:58 URP Material Fix
2:33 First Person Controller Overview
9:59 Mobile UI Support
13:10 Third Person Controller Overview
16:13 Scripts Overview
16:25 Script - Start Assets Inputs
17:29 Script - First & Third Person Controller
30:20 Script - Basic Rigidbody Push
31:18 Script - UI Canvas Controller Input
31:29 Script - Mobile Disable Auto Switch Controls
31:47 Script - Virtual Button
32:00 Script - Virtual Joystick
32:45 Script - Virtual Touch Zone
33:15 Improvement Suggestions
35:05 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
/ samyg
💬 Discord Server 💬
/ discord
🐦 Twitter 🐦
/ samyam_utube
📚 Facebook 📚
/ samyam.youtube
🎵 Music 🎵
Ambient Gold
streambeats.com
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
www.amazon.com/shop/samyam
#madewithunity #gamedev #unity

Пікірлер: 214
@hellomeow9590
@hellomeow9590 2 жыл бұрын
Microsoft's C# style guide actually states that public members, including fields, should be PascalCase. However, Unity mostly uses camelCase for public fields. I don't think it really matters, as long as it's consistent. It's a bit messy that Unity is using both here.
@samyam
@samyam 2 жыл бұрын
Ah okay, thanks for the clarification. I've mostly used C# within Unity so I assumed they were following C# standards. Guess not! But yes, they are doing two different conventions and it is very strange.
@spartadiunruly6212
@spartadiunruly6212 2 жыл бұрын
@@samyam You think you could do tutorial on character selection in Unity Starter Assets
@chrheca
@chrheca 2 жыл бұрын
@@diliupg wat
@diliupg
@diliupg 2 жыл бұрын
@@chrheca wat-me-worry. :-D
@Joooooooooooosh
@Joooooooooooosh 2 жыл бұрын
In the two months since I've been doing Unity development, it's clear to me that most people doing it have NEVER read those guidelines.
@rupeshjumde7161
@rupeshjumde7161 Жыл бұрын
I shocked even how much detailed tutorials you make. Love You so much!, keep Making in depth tutorials like this.
@umbra7299
@umbra7299 2 жыл бұрын
what an awesome channel. Glad I found it. Great tuts, very complete and easy to understand. tysm for your work
@samyam
@samyam 2 жыл бұрын
Thank you! :)
@walterh2113
@walterh2113 2 жыл бұрын
Great improvements on the script, much less of a mess now!
@samyam
@samyam 2 жыл бұрын
Thanks stranger! 😉
@ZefiDev
@ZefiDev Жыл бұрын
Thanks you so much I have been stuck at this and I finally did it! You are so helpful!
@GameDevExperiments
@GameDevExperiments 2 жыл бұрын
Great video Sam! I like how you cleaned up the scripts :)
@samyam
@samyam 2 жыл бұрын
Thank you! 🙂
@zainajmal6180
@zainajmal6180 2 жыл бұрын
you did awesome works
@seemunchan1664
@seemunchan1664 2 жыл бұрын
THIS IS SOOOOOOOOOOOOO GREAT!
@samyam
@samyam 2 жыл бұрын
Thanks!
@kawantrindade3424
@kawantrindade3424 Жыл бұрын
Oh very informative analysis
@ishananchit677
@ishananchit677 Жыл бұрын
thank you so much for this!!!!
@rs92_
@rs92_ 2 жыл бұрын
Thanks. Really thanks 🙏
@Nick-rq4gy
@Nick-rq4gy 5 ай бұрын
10:20 is the best part for mobile thank you samyam❤❤❤🎉🎉🎉🎉🎉🎉
@charlienell693
@charlienell693 Жыл бұрын
Loving your channel! Great content! Is it possible you can create a tutorial on how to turn the 3rd person controller into a top down with mouse look rotation controller?
@MrGn-ur4wh
@MrGn-ur4wh 10 ай бұрын
Thank you so much! I know is a bit late because this video was uploaded after 2 years, but i was going crazy because why my UI dind't work in game mode, but it worked in simulator mode. 😂🙇‍♀
@Mikelica69
@Mikelica69 2 жыл бұрын
Good video!!!!
@samyam
@samyam 2 жыл бұрын
Thanks!
@pocoace5415
@pocoace5415 10 ай бұрын
thank you very much lovelots
@diliupg
@diliupg 2 жыл бұрын
You took the STarter assets a few steps forward! It's like UNity released Version 1.0 and now it is 1.1! Excellent as usual.
@samyam
@samyam 2 жыл бұрын
Thank you so much :)!
@edhalsim
@edhalsim 10 ай бұрын
Great job! One question: what's the process for adding a new input, say pressing the "P" key? I assume you would copy code from say jump in StarterAssetsInputs, but then would you update the FirstPersonController script somehow, or create a new one, and what would it contain? Thanks.
@Bracus_Jawn
@Bracus_Jawn 2 жыл бұрын
Great guide. i tried recreating the script in bolt to practice, but the same things you corrected were confusing, thanks!
@MyMusic-pi6lz
@MyMusic-pi6lz 2 жыл бұрын
U made my day.. 😊 I'm gonna start to develop a game.. And ur vid is so useful to understand unity easily. Tq
@samyam
@samyam 2 жыл бұрын
Awesome glad it helped!
@simuloid
@simuloid Жыл бұрын
Hi, great channel and terrific tutorials! Would you have a suggestion for modifying the joystick camera controls in “UIVirtualTouchZone” to behave more like a swipe / touchzone?
@learninglearning2
@learninglearning2 Жыл бұрын
exactly!!!!!!!
@ankurrPurohit
@ankurrPurohit 11 ай бұрын
did you found the solution ?
@simuloid
@simuloid 11 ай бұрын
No, still need this
@mrgonuts
@mrgonuts 2 жыл бұрын
Hi Sam Another Great video as always have you tried switching the third person asset to Universal Windows Platform the controls don't work if you do any pointers to help fix it Cheers
@mariegrasmeier9499
@mariegrasmeier9499 Жыл бұрын
Hi, thanks for this helpful video! Great introduction! I have a question: I am using First Person Controller and set its gravity to 0 when the player is inside a ladder trigger so they do not fall down until pressing a key to use the ladder. However, the player still falls down even though the gravity value is displayed correctly as 0 in the inspector. Any idea what I missed? Many thanks, Marie
@garnishstudio3567
@garnishstudio3567 Жыл бұрын
This is way more in depth and helpful than the tutorial on Starter Assets released by Unity. Thanks so much for this content, it's really useful! I have a question -- Is it possible to automatically detect if the user is on a mobile device, vs. PC, and disable the touchscreen UI accordingly? After watching the video it looks like the script will automatically detect if the user is on mobile vs. using the computer, but I don't know how to disable the UI sprites when using the PC. Anyone know how to do this?
@davestr2046
@davestr2046 Жыл бұрын
I agree. It's refreshing to find someone who knows what they are talking about, goes in depth & explains (and explains well) instead of running through it at mad speeds and is probably more interested in monetizing their channel, harvesting subscribes and likes and marketing crap that they will have you believe is the secret sauce to making you a pro-programmer\CG artist, and that if you do your research, is freely available from a variety of different sources. Pffft!! Rant over.
@raoahmed637
@raoahmed637 2 жыл бұрын
You r the best
@samyam
@samyam 2 жыл бұрын
Thanks! :)
@andywatts
@andywatts 4 ай бұрын
Very cool. Just needs uk toolkit now. :)
@markegan2570
@markegan2570 2 жыл бұрын
Hi samyam!. I'm enjoying your tutorials.
@samyam
@samyam 2 жыл бұрын
Thank you!!
@majdodeh2733
@majdodeh2733 Жыл бұрын
I never thought I could fall in love with someone's coding style and skill. Just casually correcting the Unity templates and explaining why 👁👄👁. Great content for those who known C# very well yet they're new to Unity!
@ErenBR562
@ErenBR562 Жыл бұрын
Hello, I recently discovered your channel! Could you ask me a question related to touch?
@codemonkeynorth7503
@codemonkeynorth7503 2 жыл бұрын
2:40 - just to note what dragging the Reflection Probe exr file is changing: Window -> Rendering -> Lighting -> Environment -> Skybox Material
@omritahar9048
@omritahar9048 2 жыл бұрын
I stopped the video after 7 mintues just to say: THANK YOU!!! GOD What a wonderful wonderful overview!!! OK I'm good, going back in.
@samyam
@samyam 2 жыл бұрын
Woo!! Thanks so much!
@vocheseleon
@vocheseleon Жыл бұрын
I love your voice.
@silemayfly4463
@silemayfly4463 2 жыл бұрын
Cool and Clear vid as always, just wanna ask how to implement a new button for the Android virtual buttons? I wanna add an interact button.
@kal5916
@kal5916 2 жыл бұрын
Yeah me too but I'd like to try interacting with objects and opening doors via touch input or mouse click event.
@samyam
@samyam 2 жыл бұрын
You can add a new action to your input action asset, copy one of the existing buttons in the sample (make a prefab if you'd like to put it on the other scene), change the graphic with what you want, and then in the Player Controller or another script that subscribes to that action pressed event, implement your interaction functionality. Or you can use the On Screen Button component from the new input system which pipes the button input into your specified input action and then in some script you can get a reference to the player input component and subscribe to that action and check the value manually. Similar to how it would be with the On Screen Joystick kzbin.info/www/bejne/sJWaZn2naJyFbJI But I'd stick with the first option to keep the scripts consistent.
@silemayfly4463
@silemayfly4463 2 жыл бұрын
@@samyam Thank you so much, I'll try it right away.
@wmka
@wmka Жыл бұрын
Hi samyam. Is there a tutorial for “full body” first-person controller using these assets? Thank you and have a good one.
@Nick-rq4gy
@Nick-rq4gy Жыл бұрын
Thank you samyam, great video thanks you FPS Controller look problem when playing my Unity game on my smartphone: On call of duty Mobile, when I press my finger and drag the look camera where I want to look too. On my current fps controller, you press right on the look screen the look camera just spins in a circle going right. In call of duty mobile when I press the right side of the look screen the look camera does not spin in a circle constantly. What setting would I change in the Inspector panel would I adjust to stop my FPS Controller from doing this? also thank you for the video getting my game to a smartphone really helpful thanks.
@thebulletkin8393
@thebulletkin8393 3 ай бұрын
If i wanted to take this existing script and shape it around a rigidbody movement system, would I even need to do the lerp that is shown in the move method?
@mikeroegames
@mikeroegames 2 жыл бұрын
Hay there, I'm having an issue where when I move the third person camera it dose not smoothly move it snaps/jitters. Any idea why this is?
@adrianalcomendras6754
@adrianalcomendras6754 2 жыл бұрын
you think you could do a tutorial on how to extend the started assets 3rd person controller to support melee combat?
@samyam
@samyam 2 жыл бұрын
That’d be interesting! Thanks for the suggestion I’ll keep it in mind
@juliaalder2007
@juliaalder2007 2 жыл бұрын
I would also love to see this. 😍
@adrielpetino3344
@adrielpetino3344 2 жыл бұрын
Yeah i would also like this. Im very new to coding and tried to add an attack, it worked except it just loops the attack animation forever eventhough the "loop time" is off.
@juliaalder2007
@juliaalder2007 2 жыл бұрын
@@adrielpetino3344 Yes, I still hope that she will do this. 😊
@blockboyeytu7824
@blockboyeytu7824 Жыл бұрын
Hi im currently making a mobile game and when ever i enable the mobile controls and turn off curser settings it only works on my pc it does not work on my ipad do you know how to fix this? BTW great tutorial! EDIT: if you are wondering its unity remote not suporting the new input system so it will work when you build the project
@gryffind96
@gryffind96 2 жыл бұрын
I like it this review, there are many areas of improvements for this asset. Anyway, could you do the same with the invector shooter asset to find areas of improvements, please ?
@samyam
@samyam 2 жыл бұрын
Thanks? Unfortunately I don’t have that asset 😅 Also it’s most likely that their code standards are better than Unity’s in this case, seemed like a rush job on their part
@gryffind96
@gryffind96 2 жыл бұрын
@@samyam yeah the only bad thing of invector shooter is that their using old input system and their components are not modular. It means that if you want to implement a new feature on invector controller you need to modify the core code and that is something unmaintainable :')
@samyam
@samyam 2 жыл бұрын
Ah okay, well I imagine most unity packages don’t have support for the new system sadly 😢
@rictusbrothers
@rictusbrothers 2 жыл бұрын
Great video! I tried to replicate your improvements with Third Person controller but when the character finish his jump up and start to fall down, it floats for a while before touching to the ground and can even walk mid-air. Any idea?
@rictusbrothers
@rictusbrothers 2 жыл бұрын
If anyone encouter the same issue, check your Layers and GroundLayer...
@rigidbodyinteractive6946
@rigidbodyinteractive6946 2 жыл бұрын
interesting tutorial thanks. I'm trying to add a simple "Mouse Button" function but i'm having hard time. If i open the existing Input Action called 'Starter Assets' i can add a new action (e.g. 'Attack') to the list of actions. But then how can i map this new behavior to the controller? I learned from you that i should modify 'StarterAssetsInputs' script, but i don't know how.
@samyam
@samyam 2 жыл бұрын
I have an input system tutorial that might clarify some things kzbin.info/www/bejne/o2a6pKCierR5n6M
@xdanic3
@xdanic3 9 ай бұрын
The most in-depth video, but nothing covers how to work with ui and the new input system which this asset uses 😭
@user-rg8pe1qj2t
@user-rg8pe1qj2t 3 ай бұрын
if i want camera and character both rotation in same direction and camera should exactly on the back side of character than what should i do?
@user-rg8pe1qj2t
@user-rg8pe1qj2t 3 ай бұрын
here if we want that camera exactly on the back side of character and character should rotate on the same dirction of camera in look n joystick code than what changes should i do in code?
@bitmammothOG
@bitmammothOG 2 жыл бұрын
A tutorial on how to control this with external parameters like over a network or using AI would be amazing!
@bitmammothOG
@bitmammothOG 2 жыл бұрын
More specifically the movement and the animations on the third person controller :)
@samyam
@samyam 2 жыл бұрын
Hm so a networking game with animations? I have a video on adding animations to a third person character here which may also help: kzbin.info/www/bejne/a2mWg2yCnLeNhqM
@bitmammothOG
@bitmammothOG 2 жыл бұрын
@@samyam Yes that would be super helpful and there is pretty much zero information on how to do this on youtube :) Another recommendation would be trying to integrate something like UMA 2. I have come very close to getting it to work with this controller but it fails to recognize the umadynamicavatar as a normal avatar. Thank you for the link to the video I really appreciate the time you take to do this!
@bitmammothOG
@bitmammothOG 2 жыл бұрын
hmm seems it sort of works but only after I manually change the avatar during runtime then set it back to the same one lol what the heck :)
@bitmammothOG
@bitmammothOG 2 жыл бұрын
got uma2 to work with this but I don't know if its right, I had to disable animation culling and set it to always animate .
@user-cb4lh9zp4d
@user-cb4lh9zp4d 2 жыл бұрын
This is a good lecture video! I've set up the joystick as you said, and when I tested it before building the project it worked fine. However, after the build, the joystick does not work in both mobile and web pages. As if the function does not work, there is no response when touched. What should I do?
@ikee_2947
@ikee_2947 Жыл бұрын
Hi! have you fixed this problem? I'm having the same issue.
@levitate007
@levitate007 Жыл бұрын
Hi! @@ikee_2947 is this fixed?
@ikee_2947
@ikee_2947 Жыл бұрын
@@levitate007 yes
@johnsartain4160
@johnsartain4160 6 ай бұрын
not working for me either
@Jim_the_Hermit
@Jim_the_Hermit 8 ай бұрын
I'm trying to make a full body FPS from both starter assets. But the camera of the 3PC keeps bouncing around when the player moves fast. How do I stop it?
@KennyWlr
@KennyWlr 2 жыл бұрын
Is it just me, or is the default Input System mode set to "Fixed updates" for everyone when they create a project from this template? This was creating massive stuttering issues for me when looking around with the mouse. Out of curiosity, I implemented a point/click system with a cursor and sure enough the lag was terrible. The lag went away completely when I switched to "Dynamic updates" in the player settings.
@theUNDEFEATEDone1
@theUNDEFEATEDone1 Жыл бұрын
Hey Kenny! You still alive?
@jonathanglock1574
@jonathanglock1574 10 ай бұрын
Yep finally made it to this step and no render pipeline in edit menu now what
@kostariev_vadim
@kostariev_vadim Жыл бұрын
Did I understand correctly that we write a variable such as movement in the code as "Movement" if it is a property, "movement" if it is a public variable and "_movement" if it is a private variable?
@unohhhjjdd6716
@unohhhjjdd6716 2 жыл бұрын
Hi, I'm an absolute beginner at coding in Unity. I tried to follow your videos for the new input system, but when I try to generate a C# script with the First Person StarterAssets.inputactions the console gives me this error: "The namespace 'global namespace' already contains a definition for 'Starter Assets'". Any suggestions?
@samyam
@samyam 2 жыл бұрын
That might be because they have a script with that name already, try generating the script with a different class and file name and see if that helps.
@unohhhjjdd6716
@unohhhjjdd6716 2 жыл бұрын
@@samyam Thanks very much for the answer, I'll try it!
@trachinusdraco
@trachinusdraco 2 жыл бұрын
The conversion is on another menu on newer Unity if someone is wondering.
@christopherthomas9024
@christopherthomas9024 Жыл бұрын
Where?
@olodurin6942
@olodurin6942 Жыл бұрын
walking up stairs work for a player with capsul collider ?
@ed_halley
@ed_halley Жыл бұрын
URP Material Fix - the "Upgrade All" menu item is not in 2021.3.9f1; and if I search all Materials and "Convert Selected Materials" it converts more than half the pink ones but fails on four.
@halimebeyzacicek8440
@halimebeyzacicek8440 2 жыл бұрын
I don't want a camera following my character. i mean, the camera can not jump when the character is jumping. Can i do this with this assets?
@DotaWB
@DotaWB 2 жыл бұрын
is there any solution to choppy camera and lag spikes? I cant figure out . something is happening wrong
@sealsharp
@sealsharp 2 жыл бұрын
I find it weird when scripts described as "standards" contain messy parts. On the positive side, it looks far better than the older standard asset controllers. Then again, it's still Unity, so i assume that none of the game examples to released will ever use this new "standard".
@samyam
@samyam 2 жыл бұрын
Yep, seems like a rush job unfortunately
@la_treta
@la_treta 2 жыл бұрын
Is it complicated to make it usable for Network games? i've tried using with Mirror, didn't get good results, might've done something wrong.
@samyam
@samyam 2 жыл бұрын
I don’t have much experience with networked games unfortunately, but perhaps the Unity MLAPI might work for you.
@aleksanderadamski3673
@aleksanderadamski3673 2 жыл бұрын
How to turn on possibility to look up and down with first person controller?
@undermoonsolo
@undermoonsolo 10 ай бұрын
When I drag the eye icon(camera control) of the mobile UI controllers, the camera rotates super fast.Could anyone tell me the reason ,please?
@dvogoldenruleflow
@dvogoldenruleflow 2 жыл бұрын
Hi, thank you. Would you do a tutorial of setting 1st person camera on a 3rd person rigged body? So that when the player runs, we can see the hands or other gestures?
@samyam
@samyam 2 жыл бұрын
Huh, thats an interesting idea. I’ll consider it for the future :)
@VirtualWRLDS2023
@VirtualWRLDS2023 2 жыл бұрын
@@samyam We are also currently trying to do this, It would be awesome if you made a video!!
@ROUGETHEBAT456
@ROUGETHEBAT456 4 ай бұрын
There's an issue with the starter assets when u set the move of look for mobile it don't register u spin out of control what do I do to fix it
@MikesytT
@MikesytT Ай бұрын
Hi guys so I am having an issue when using first person controller. I wanted to make a ui but it seems like I cant interact with it even when Ive pressed esc. When I press a UI button the cursor disappears again. Help would be highly appreciated
2 жыл бұрын
Is it possible to adjust the mouse sensitivity? I'm using a third person and when I move the mouse it moves a little too much and I can't find how to adjust it.
@samyam
@samyam 2 жыл бұрын
It's not entirely obvious, but where they change the camera pivot rotation CameraRotation(), you can do something like: [SerializeField] private float cameraRotationSpeed = 2.0f; CinemachineCameraTarget.transform.rotation = Quaternion.Euler(_cinemachineTargetPitch + CameraAngleOverride * cameraRotationSpeed , _cinemachineTargetYaw * cameraRotationSpeed , 0.0f);
@shahzadansari849
@shahzadansari849 2 жыл бұрын
I just Imported this Package Everything Was Fine but When i Rotates using mouse the camera glitter , Sometimes it doesn't rotates Smoothly , more this occurs while jumping !
@sujeetkotalwar
@sujeetkotalwar Жыл бұрын
One question How to perform cinemachine camera behind the 3rd person character controller, when left/right arrow key pressed? please reply
@samyam
@samyam Жыл бұрын
Do you mean blend between different cameras? I have a video on that kzbin.info/www/bejne/raezk4aIicZ7Z6s Or you can change the cinemachine offset in the settings to position it more right or left to the character
@sujeetkotalwar
@sujeetkotalwar Жыл бұрын
​@@samyam Thanks for response. Not blending of different cameras. Infact use camera to perform multiple actions. In third person controller of starter-assets when you press arrow keys, I want camera to go behind the character rather than following/bring sideways. Hope you got it!
@samyam
@samyam Жыл бұрын
You can do that with different cameras and blend between them it works nicely, or change the values of the cinemachine manually in code kzbin.info/www/bejne/raezk4aIicZ7Z6s
@Zireael_Daifuku
@Zireael_Daifuku 9 ай бұрын
I don't have the "Tools" menu, can you help me please?
@raoahmed637
@raoahmed637 2 жыл бұрын
Can u please make a video on camera rotation using touch control without any button(camera Control like in pubg mobile ,COD and genshin impact) in starter Asset
@samyam
@samyam 2 жыл бұрын
You'd probably want to implement some swiping detection. Luckily I have a video for that! kzbin.info/www/bejne/jobbkISif9WXZq8
@yothornberry7079
@yothornberry7079 2 жыл бұрын
How to fix the 3rd person character controller capsule from bouncing down the stairs. U can test this by setting up a character capsule and walking down the stairs. It repeatedly sets grounded to on and off not allowing you to jump down slopes
@samyam
@samyam 2 жыл бұрын
Hm I don't have an issue with that in the Starter Assets, you can try playing around with the character controller values, also try making the stair collider one big triangle shape
@yothornberry7079
@yothornberry7079 2 жыл бұрын
@@samyam ya it happens with character controller capsule not the robot character it comes with by default However I fixed this by watching Ketra games bounce slope video. Thanks
@AbhayKumar-kb8tv
@AbhayKumar-kb8tv 2 жыл бұрын
For the Camera, I don't want a joystick. I want a trackpad. How can I implement it?
@samyam
@samyam 2 жыл бұрын
Do you mean trackpad as in a Mac laptop?
@AbhayKumar-kb8tv
@AbhayKumar-kb8tv 2 жыл бұрын
@@samyam touchpad on mobile devices to move camera. BTW I was able to implement it from your mobile input video using new input system. Thanks for your work!
@Luluskuy
@Luluskuy 2 жыл бұрын
@@samyam maybe he mean touch area for change camera orbit, like minecraft
@PYC128
@PYC128 2 жыл бұрын
do you have a solution for using Unity Events causing input to be registered every single frame? apparently Unity Events fire when they start, when it senses a change, and when they finish, which means at minimum it seems to fire three times in a frame. EDIT: I implemented a coroutine/bool combo to add a delay but jeez it seems like there should be a built in solution for this issue?
@samyam
@samyam 2 жыл бұрын
You can access the events directly through the player input component to avoid subscribing to the events. InputAction move = playerInput.actions[“Move”]; move.performed += …
@johnsartain4160
@johnsartain4160 6 ай бұрын
When I use the look Joystick in the editor or through the unity remote on a Android device it goes absolutely berserk rather than being nice and steady as it is when I actually build it to a Android device.
@ROUGETHEBAT456
@ROUGETHEBAT456 Жыл бұрын
Why is the look button go haywire whe I touch it how do I fix the look camera
@GuillemPoy
@GuillemPoy 2 жыл бұрын
Have this been issues been shared in the forums and/or to the developers?
@samyam
@samyam 2 жыл бұрын
I posted the video in the starter assets forum but haven’t made a dedicated post yet
@GuillemPoy
@GuillemPoy 2 жыл бұрын
@@samyam I did create a post in the forums for it: forum.unity.com/threads/a-lot-of-errors-in-the-unity-starter-assets-how-to-report-them.1153925/
@samyam
@samyam 2 жыл бұрын
Thank you so much!
@alovelygondal7673
@alovelygondal7673 2 жыл бұрын
I don't know much about c# code can u guide me how can I use ui panel and fixed touch panel to look around instead of joystick
@samyam
@samyam 2 жыл бұрын
You can use the On Screen Button and pipe the input to your script to read, if you don't want to use a joystick
@kolerhcp
@kolerhcp 2 жыл бұрын
Does someone know if I can modify this a little bit in order to be able to go up and down, like fly around with the character?
@samyam
@samyam 2 жыл бұрын
Maybe these tutorials will help you out kzbin.info/www/bejne/gnWccqWPZdVkkJI kzbin.info/www/bejne/gGe0g2eBr7OYgLc
@developer20xx41
@developer20xx41 2 жыл бұрын
when i grab the Player Capsule, theres no camera to render the scenes in game view. I can just move the capsule around. How do i render the camera in 1st person to be seen in my game view
@samyam
@samyam 2 жыл бұрын
The samples should work out of the box, I'm not sure what you mean in your case. You can join our Discord server and ask in the #help channel with more details if you'd like: discord.gg/SwCKB3Q
@jeronimocollares320
@jeronimocollares320 2 жыл бұрын
samyam - i ll say something, im pretty old, start study C# few days a go...everything is VERY strange yet. Im doing a 'course' on Unity (that pathfinder) in c#. Looks like i never ll understand this scripts what you are showing up to us, but... everything have a 'start'... I can already identify a few things - nothing much more. My native language is not English, which makes it even more difficult - but I'm stubborn and I know how to go for it. But I think that's how you start - identifying some things, learning that the 'dot', for example, calls something... how to write a variable, some uses, signs, etc. I've been trying to find a tutorial about 3d + point and click. I have been unlucky and would just like to see one character in scene, 4 or 5 motion animations, a giant plane and that character or player moving around. If you know of any tutorials about, let me know? I would also like to be a 'patreon', I really liked your videos, but unfortunately in my country (Brazil) things are difficult and complicated for us and for me. Anyway, thank you immensely.
@samyam
@samyam 2 жыл бұрын
Hey! For pointing and clicking this video might help you out: kzbin.info/www/bejne/gHqnaIyXfaangaM This tutorial is a bit advanced, but it's a 3rd person shooter tutorial (movement, shooting, camera) kzbin.info/www/bejne/iZaldqmDZ9-Aprs And then to add animations to it: kzbin.info/www/bejne/a2mWg2yCnLeNhqM And thanks for the support! And absolutely no worries, I appreciate the sentiment :)
@jeronimocollares320
@jeronimocollares320 2 жыл бұрын
@@samyam thanks again. I ll watch all :) but i need a 'step back' and back to basic in C# (Unity course called "Junior programer"). :)
@mohamedrafat3380
@mohamedrafat3380 2 жыл бұрын
how i can make orient ui look in x-axis only ???
@indiantradition273
@indiantradition273 2 жыл бұрын
Hey I am facing error when using the UI joystick controller in unity as per your video, can you help me out
@samyam
@samyam 2 жыл бұрын
What's the error?
@yuler_
@yuler_ 2 жыл бұрын
Aw man, for some reason i got some weird bug that makes the mouse input stutter when i touch something in the hierarchy or change a value in the inspector while the game is playing. The smoothness can be reset by opening another scene and coming back, but that doesn't prevent it from happening again. The really odd part is that gamepad input remains buttery smooth even when the mouse input is stuttering. I think it may be related to cinemachine because the effect doesn't occur (or is at least really subdued to the point of being almost imperceptible) when I remove the cinemachine package and instead make the main camera a child of PlayerCameraRoot. I also tried this on another computer with the same results. Any idea as to whats going on here?
@samyam
@samyam 2 жыл бұрын
This is a random guess, but perhaps it has to do with the cinemachine body Obstacles camera collision filter? Try using the cinemachine collider extension instead and see if that helps.
@yuler_
@yuler_ 2 жыл бұрын
@@samyam Darn, it doesn't seem to fix the problem. I tried the extension, then I tried setting all the camera collisions to 'Nothing' but the stutter remains. I'll go ahead and make a post at the unity forums to see if anyone else has come across this. Thanks for the help
@yuler_
@yuler_ 2 жыл бұрын
Ok I found out that this is a combination stutter problem. Having some scripts open in the inspector causes stutter, collapsing them may help. In addition, there is the known inspector stutter issue of having the transform section expanded, collapsing that may help. The 'fix' is to click on a gameobject in the hierarchy that doesn't have much going on in the inspector or collapse everything 😕
@ArtOfGael
@ArtOfGael 2 жыл бұрын
@@yuler_ Thank you! I was having the same problem and it was driving me crazy! o_O
@tofinoguy
@tofinoguy 19 күн бұрын
The packages have been deprecated.
@talhajutt7109
@talhajutt7109 Жыл бұрын
how to add new animation in starter asset
@AdityaSinghAsia
@AdityaSinghAsia 2 жыл бұрын
How do we make Shoot/fire functionality using these Starter assets for mobile.
@samyam
@samyam 2 жыл бұрын
I have a third person shooter video which I think you will find useful :) kzbin.info/www/bejne/iZaldqmDZ9-Aprs It doesn’t use the starter assets but it’s very similar, uses cinemachine and the new input system, and in the description are the time stamps so you can skip to the section you want
@windynt01
@windynt01 2 жыл бұрын
Can I use 'Starter Assets' in my commercial games?
@samyam
@samyam 2 жыл бұрын
Yep!
@Only4GamersXyz
@Only4GamersXyz 2 жыл бұрын
Hello, How to add more controls, like firing bullet? I added a new action in Input Actions with name Fire. Then in my script I Added: void OnFire() { StartFiring(); } But it's not working. What else I need to do? Please help. Thank you.
@samyam
@samyam 2 жыл бұрын
If you are using SendMessages behaviour on the player input then the function name has to match exactly as the component says (at the bottom it says what functions it calls). If you are using Unity events you must add in your script into the Fire event in the drop down of the PlayerInput component. This is to make sure the function is called, but if that function is called correctly and it still doesn’t work it’s an issue related to your script.
@Darkwar9099
@Darkwar9099 Жыл бұрын
Is there a option to get the controles working for android
@samyam
@samyam Жыл бұрын
It should work for Andriod out of the box!
@dylansuaris
@dylansuaris Жыл бұрын
how can i Disable the arrows keys to enable the player to move around
@samyam
@samyam Жыл бұрын
What do you mean disable arrow keys while also moving the player?
@dylansuaris8365
@dylansuaris8365 Жыл бұрын
@samyam apologies for not being too clear, I mean to say how can I get rid of arrow keys functionality that allows the player to move around. I Basically only want WASD to move the character around not the arrow keys!
@orkun441
@orkun441 2 жыл бұрын
what is your vscode theme?
@samyam
@samyam 2 жыл бұрын
Godot theme, I have a video on setting it up here kzbin.info/www/bejne/aoi6iWWVqb-oa7M
@jonathanzamudio250
@jonathanzamudio250 Жыл бұрын
genial pero ahora en español jejeje
@ROUGETHEBAT456
@ROUGETHEBAT456 Жыл бұрын
The controller don't move
@jtbSen
@jtbSen Жыл бұрын
Why do all of these videos only show how to launch the sample scene but not how to implement the controller into your own scene?
@caiocabral7355
@caiocabral7355 2 жыл бұрын
Animation Rigging dont work with this Armature, correct?
@samyam
@samyam 2 жыл бұрын
I haven't tried it personally but if it's Humanoid you should be able to add Animation Rigging. Is it not working?
@caiocabral7355
@caiocabral7355 2 жыл бұрын
@@samyam I found the bug. It's on the Animator! To fix It, I created another Animator with ALL original parameters and animations It worked for me
@samyam
@samyam 2 жыл бұрын
Great!
@caiocabral7355
@caiocabral7355 2 жыл бұрын
@@samyam I maded a render with Unity! See in my channel the result! (It's beatiful!!!)
@awwmxgeo
@awwmxgeo 2 жыл бұрын
how do you increase touch sensitivity?
@samyam
@samyam 2 жыл бұрын
It's not entirely obvious, but where they change the camera pivot rotation CameraRotation(), you can do something like: [SerializeField] private float cameraRotationSpeed = 2.0f; CinemachineCameraTarget.transform.rotation = Quaternion.Euler(_cinemachineTargetPitch + CameraAngleOverride * cameraRotationSpeed , _cinemachineTargetYaw * cameraRotationSpeed , 0.0f);
@awwmxgeo
@awwmxgeo 2 жыл бұрын
@@samyam Thanks.
@ROUGETHEBAT456
@ROUGETHEBAT456 4 ай бұрын
Third person
@Pazeee1
@Pazeee1 2 жыл бұрын
hello, thanks for the tutorial but I got an error where when I press the joystick, the joystick does not happen anything (like not being clicked), can you help me?
@samyam
@samyam 2 жыл бұрын
What's the error?
@Pazeee1
@Pazeee1 2 жыл бұрын
@@samyam i cant use the controller android, joystick cant click
@user-cb4lh9zp4d
@user-cb4lh9zp4d 2 жыл бұрын
@@samyam I have the same error. How can I solve?
@NewYorkNixDa
@NewYorkNixDa 2 жыл бұрын
With assetpackages its worthless for me, cause i wanna learn real game dev without external stuff. Sad for me :-(
@heynowheynow3182
@heynowheynow3182 2 жыл бұрын
I want this controller to be able to hug walls tightly while running around them. It seems the second you apply any force into the direction of a collider it removes a lot of your run speed and you run in place at the wall, any idea how to start implementing a way to smooth that movement speed/direction so you don't instantly lose all your speed?
@samyam
@samyam 2 жыл бұрын
Usually you can apply a physics material to the environment and set the friction to 0, but I tried it and it did not help because the character is moving at an angle to the wall, so instead when the player collides with a wall you can adjust the character controller velocity as necessary Some resources that *might* help: answers.unity.com/questions/1151066/how-to-allow-player-to-slide-along-wall.html forum.unity.com/threads/how-do-i-slide-player-along-a-wall-smoothly.278978/ answers.unity.com/questions/1681607/slide-when-touch-walls-without-losing-velocity.html
@heynowheynow3182
@heynowheynow3182 2 жыл бұрын
@@samyam thank you so much for the links and the info! I also tried the adding a physics mat to the geometry's colliders but it didn't change anything for me either
@paswordiscraft1859
@paswordiscraft1859 5 ай бұрын
It took 1h to download for me😭😭
10 Minutes vs. 10 Years of Animation
19:29
Isto Inc.
Рет қаралды 110 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 21 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 6 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 74 МЛН
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 58 МЛН
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
choosing a game engine is easy, actually
15:08
samyam
Рет қаралды 303 М.
Why these weird indie games BEAT the AAA industry
9:08
samyam
Рет қаралды 16 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 687 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 3,9 МЛН
every step to actually make your dream game (then sell it)
24:27
3rd Person Controller - Unity's New Input System
40:30
One Wheel Studio
Рет қаралды 81 М.
The INSTANT Unity Character Controller for first and 3rd Person Games
13:53
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 4,8 МЛН
Unity's New Input System:  The Definitive Guide
32:07
DmanGames
Рет қаралды 23 М.
There’s a surprise balm in every snack!? #challenge #candy
0:10
We Wear Cute
Рет қаралды 39 МЛН
Он самый молодой профессиональный камнерез
0:19
Невероятный талант😮
0:20
Лайтшортс
Рет қаралды 3,5 МЛН
🇹🇷Kemer Beach Antalya - Awesome Views - Türkiye
0:12
Benimle Gor
Рет қаралды 36 МЛН