Тёмный
No video :(

Unity3D - Mobile Input / Controls / Thumbstick / Joystick 

Jason Weimann
Подписаться 209 тыс.
Просмотров 123 тыс.
50% 1

Check out the Course: bit.ly/3i7lLtH
-------
Learn how to use the CrossPlatformInputManager to add a virtual joystick / thumbstick to your cross platform Unity game.
More Info: unity3d.college
Join the group: unity3d.group
Check out Matt's Assets: assetstore.uni...

Опубликовано:

 

13 мар 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 135   
@gokberkakar9063
@gokberkakar9063 3 года назад
Thank you so much. I've been working for 2 hours to do that, and it really helped me.
@moosesnWoop
@moosesnWoop 3 года назад
I've watched this like 40 times and I still come back lmao
@josephpugliese9615
@josephpugliese9615 5 лет назад
And after some head scratching as to why the "Mobile Input" menu wasn't appearing, it turns out that when I Imported the Standards Assets Pack, I only Imported the CrossPlatformInput section and I also needed to Import the Editor section just under it also.
@gabriel.pessoa
@gabriel.pessoa 4 года назад
THANK YOU VERY MUCH!
@TonyDaExpert
@TonyDaExpert 4 года назад
Where has this pack been all my life
@AlexanderZotov
@AlexanderZotov 6 лет назад
Great tutorial!
@increadibleangel7980
@increadibleangel7980 6 лет назад
i like your chneel
@prabhasinipradhan8868
@prabhasinipradhan8868 4 года назад
I m ur fan
@thegrey448
@thegrey448 3 года назад
u both have best chanel also. im subs both of you.
@sundersingh4568
@sundersingh4568 4 года назад
I have been trying to implement the similar functionality. it works fine on PC but on mobile once i touch anywhere on screen the joystick stops working. does anybody know the answers :(
@______373
@______373 2 года назад
Why you didn't show how you download this pack? It doesn't exit on the assets store, no link in the description and there are no such files in unity.
@worstplayereverr
@worstplayereverr 3 года назад
how to control the camera through touch as I'm working on first-person shooter game
@marveII0us
@marveII0us 3 года назад
There are very few mobile input tutorials, thanks :)
@runnerup6936
@runnerup6936 5 лет назад
Why does the center circle that controls the movement go outside the image we added under it? Is there a way to limit that movement so it stays within the bounds of the background image?
@NevRS32
@NevRS32 6 лет назад
Thanks man! Loving the RU-vid learning experience!
@NevRS32
@NevRS32 3 года назад
@Hashir Easa... Yeah... xD
@AF-ei5yi
@AF-ei5yi 5 лет назад
Im using part of this and a different joystick, but none of it's working in my game scene, so i put the joystick in the menus scene and I could move it around perfectly - but game scene it's non-responsive and im getting very frustrated over this. Any suggestions?
@JackIsOp
@JackIsOp 3 года назад
Thank you 😌 I was working for 2 days all waste of time It help me alot 👍 I am soon releasing a game yeah 🎉🥳🥳
@publicstaticvoid3224
@publicstaticvoid3224 6 лет назад
Thank you for this tutorial!
@ShinichiKudoQatnip
@ShinichiKudoQatnip 4 года назад
Loved the tutorial, but a question though, how to not show the fire active image on load? It is red before the first touch.
@sk8ersrok366
@sk8ersrok366 5 лет назад
Great video thanks for the tutorial but I've been having an issue where the joystick isn't working in the actual build. It runs fine in the Unity editor when I test play it but whenever I build it onto my android the joystick stops working. I've tried switching input type from CrossPlatformInputManager.GetAxis to CrossPlatformInputManager.GetAxisRaw. I've tried switching my player from vector2 to vector3. I've gotten rid of Clamping player space. I've tried translate instead of transform and in every instance I get the same issue. If anyone has some insight on this I would be greatly appreciative.
@Basman222
@Basman222 3 года назад
Does the button handler script works only by itself for a 2d game?
@MULTIVERSEx1
@MULTIVERSEx1 5 лет назад
This doesn't work for me please help The script i'm using is horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed; If i type like you did it just shows error. I'm a begginer
@excellNexcel
@excellNexcel 6 лет назад
Good stuff...how did your friend create an "animated" (toonish)look to the environment and player
@ShanjeiGuna
@ShanjeiGuna 2 года назад
Hi. Thanks for this. But when I do this, my character only responds to vertical input and never moves horizontally as if it's not getting any h input. I can't figure out how to fix it. Help please.
@Zig2179
@Zig2179 3 года назад
This is helpful but one question. Does anybody know to make it to where when you drag your finger across the screen it moves the camera angle? Please respond by replying to this comment.
@deathphoenix6387
@deathphoenix6387 3 года назад
They bought out new input system in unity and I have no idea how to use it with touch controls
@glitchyice
@glitchyice 3 года назад
Can you make a full series 🙏
@aliyehsadeghpoor2967
@aliyehsadeghpoor2967 5 лет назад
you say all of points I needed , thanks
@ahmetalpsayin
@ahmetalpsayin 5 лет назад
Thank you for the tutorial but do you mind showing us to your camera?
@monicardoso724
@monicardoso724 3 года назад
Pack doesn’t work anymore! :(
@iShroomsy
@iShroomsy 5 лет назад
I have an issue with the fire button for me is the punch button, I want to attach the animation punch to the button but I can figure out how. in the animator in the parameter I have a trigger named punch and if I activate the trigger while on play the animation happens but when I press my button to punch the trigger doesn't happen.
@MrJeenabanta
@MrJeenabanta 5 лет назад
I have tried to convert 2 games when using the Joystick controller for mobile. The problem is the player starts to float after taking a hit. How can I get around this problem. this does not occur when using the PC & WASD keys? please advise.
@Kr-oy2bo
@Kr-oy2bo 4 года назад
Thanks!!! I can't get the fire button to work though. When i change { if (Input.GetButtonDown("Fire1")) { Shoot(); } } void Shoot () { //shooting logic Instantiate(bulletPrefab, firePoint.position, firePoint.rotation); } to { if (UnityStandardAssets.CrossPlatformInput.CrossPlatformInputManager.GetButton("Fire1")) { Shoot(); } } i get no reaction (included a debug.log to double check)
@krutarthramani2270
@krutarthramani2270 5 лет назад
This Really Helped me! Thank You so much..!!
@simonrockstream
@simonrockstream 4 года назад
OMFG I WANT TO SEND YOU $1000000 THANK YOU SO MUCH!!!! This is the single video on all of youtube that actually FIXED my problem. THAAANK YOU!!!
@h.k654
@h.k654 4 года назад
It worked for you??Mine doesnt ;(
@schindy6385
@schindy6385 5 лет назад
i fcking love you i searched all day for something like this
@fugazigamer1426
@fugazigamer1426 5 лет назад
Does this work with IOS on MAC? When I try the drag the joystick around in game, the button disappears. The player doesn't move either.
@vishal9531
@vishal9531 4 года назад
it says unable to instanciate prefab,,prefab may be broken...when i try to instanciate any prefab form crossplatfrom....please help
@Gnda3e
@Gnda3e 2 года назад
Hello, wich is the name of the package?
@fareezjasmi6893
@fareezjasmi6893 4 года назад
Nicee oneee .. Really appreaciate it mate
@iangraham6730
@iangraham6730 4 года назад
Really helped me out today man! Thanks!
@wrestlingadeer8445
@wrestlingadeer8445 2 года назад
I don't know why Mobile Input was not in my Unity even though I install the package
@romecarpio4107
@romecarpio4107 5 лет назад
Hi thanks for this great video. I am currently doing the unity 3dgamekit tutorial and try to follow your advice. The player ellen has a player input script and try to change the Input to CrossPlatformInputManager for both horizontal and vertical axis but it did not work. Can you make a quick video about it using the unity3dgamekit tutorial.
@moizbukhari1133
@moizbukhari1133 3 года назад
rome if u find the solution can u plz pass it to me...it would be great help...
@metsuke
@metsuke 5 лет назад
can I use that, and keyboard at the same time? that seems to disable keyboard
@akanda9239
@akanda9239 4 года назад
Try using unity remote app from playstore
@Clasharama
@Clasharama 5 лет назад
Can u make a tutorial for selecting a single object from multiple objects and scale, move and rotate that same object
@parthudawant7015
@parthudawant7015 3 года назад
Hey, man great video😊. Can you help me with this problem, "Whenever I swipeUp or perform any swipe on the screen my code registers several inputs and so the respective swipe method gets called like 8times or more than that, so can you please help me with this problem?".
@kalysiquirres
@kalysiquirres 6 лет назад
muy bueno es el mejor video que e visto los demas no lo esplican a si muchas gracias taks
@Mitihalew
@Mitihalew 6 лет назад
How could we make this a floating joystick?
@AF-ei5yi
@AF-ei5yi 5 лет назад
using UnityStandardAssets.CrossPlatformInput; doesn't appear for me
@lionciomorcilla4743
@lionciomorcilla4743 5 лет назад
Pretty Helpful tutorial!
@metsuke
@metsuke 5 лет назад
I have 1 question, why the controller has like a 2 seconds delay before it works
@Ludoed
@Ludoed 5 лет назад
Maybe your character have "has exit time" component from Idle to Move in animator?
@mightymap007
@mightymap007 4 года назад
ok if i select "any android device" dont see my specific device listed..
@DanRichardsonTV
@DanRichardsonTV 4 года назад
@Epoch plus5 yeah, same issue over here. Phone is in USB debugging mode, tried all sorts of options from USB transfer enabled to tethering and PTP. Thing just won't show up in Unity. Works fine in Android Studio though.
@nanman4554
@nanman4554 3 года назад
There is no CrossPlatformInput folder in my StandardAssets folder, in 2018, 2019, 2020 Unity. How did you get yours in there? And don't just say download Standard Assets because that's already in my project...
@Roughneck7712
@Roughneck7712 3 года назад
Not sure you ever got an answer, but if you go to the asset store and search for "Standard Assets (for Unity 2018.4)", you'll find what you are looking for. If you go to "Package Content" (on the Asset Store page for this package), you can drop down "Standard Assets > CrossPlatformInput > Prefabs" and you should be able to see "MobileSingleStickControl.prefab" in the list of included prefabs.
@mr.shanky
@mr.shanky 4 года назад
Thanks Sir, very useful 💯
@publicstaticvoid3224
@publicstaticvoid3224 5 лет назад
Thanks man! Great stuff!
@lynseyrae7518
@lynseyrae7518 6 лет назад
Quick question. Where did you get the mobile input dropdown menu? Thank you
@Unity3dCollege
@Unity3dCollege 6 лет назад
Import the standard assets pack (from the asset store) and switch to a mobile build platform. :)
@imfaded3105
@imfaded3105 2 года назад
@@NicolasCorini yeah
@puraramkhatri3
@puraramkhatri3 4 года назад
In Andoid Device Joystick Does not Show After onetime Touch What is issue??
@tererezerogamestudio9228
@tererezerogamestudio9228 4 года назад
You have to set the canvas where the joystick is nested in to Screen Space Overlay. I've tried screen space camera, and the joystick moves. That is the reason of the "disappearing".
@ZoidbergForPresident
@ZoidbergForPresident 6 лет назад
Cool, but what about simple drag and drop? And having both touch control and mouse control? I'd be interested in that too personally. Is it explained in the doc somewhere?
@noobingame9291
@noobingame9291 6 лет назад
Adding mobile input doesn't disable other input. Not sure what you mean by drag and drop.
@ZoidbergForPresident
@ZoidbergForPresident 6 лет назад
Well, I mean like in card games you drag the "card" and drop it on a zone that recognize it. I'm trying to do something like that using Unity UI and I plan on having touch controls.
@noobingame9291
@noobingame9291 6 лет назад
Touch generally simulates mouse events too. OnDown/Drag events should work cross platforms.
@ZoidbergForPresident
@ZoidbergForPresident 6 лет назад
Oh, cool to know. Thanks.
@marveII0us
@marveII0us 3 года назад
Awesome:D
@GameBoy-ov9xi
@GameBoy-ov9xi 3 года назад
Anyone out there doing a mobile game from scratch?? Like script and add buttons?? I cant find not even one video on the net where someone does his own. Like a 3rd person character feel from start in unity mobile :(
@nullified__
@nullified__ 5 лет назад
Please Help ! i don't have the Mobile Input!
@joaomede
@joaomede 6 лет назад
it seems cool, but I do not understand where you left with this script to control the player, it seems that already had the project ... anyway, impossible to perform the tutorial without it.
@timeforusjyc6056
@timeforusjyc6056 5 лет назад
I'm agree with y.. i just try it. and doesnt work..
@phambaoha170
@phambaoha170 5 лет назад
Thank you. Its interesting.
@junioresnc
@junioresnc 6 лет назад
how do i make that control to look around the scenario by touching anywhere on the screen that isn't the buttons?
@NevRS32
@NevRS32 6 лет назад
Dude, check this one out: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CmCVtEZUKIs.html
@junioresnc
@junioresnc 6 лет назад
Nevile Ruas thanks
@sonajackova5896
@sonajackova5896 4 года назад
Brooo you just saved my life OMG!!! Like, subscribe and RECOMMEND!!!!! Awesome content keep it going like that!!!😎😎
@superclutz1
@superclutz1 5 лет назад
Tyvm. U rock dude.
@fisslewine1222
@fisslewine1222 6 лет назад
Wow very cool joystick tutorial, but is there a why to change the colour of your joystick image when the button is being used? Also I wondered, is there a way to hide/ fade out the joystick until it is pressed so screen space isn’t impacted too much?
@foodmixic1503
@foodmixic1503 4 года назад
Thanks a bunch!
@branidev
@branidev 4 года назад
i add Standart Assets and get like 52 errors....
@Shibis
@Shibis 6 лет назад
Thanks
@ZoroastrianMK
@ZoroastrianMK 6 лет назад
I'm having a really strange and big problem. In the editot, the player moves perfectly, but on the android device, the player only moves if the vertical axis is greater than the horizontal. If you move the joystick slightly to one side, it moves up and to that side, but the moment that the horizontal value is greater than the vertical, it just doesent move at all, it stays in place animating. I have this thread opened on the Unity forum in case someone can take a look to the code: forum.unity.com/threads/virtual-joystick-horizontal-working-on-editor-but-not-on-android.531275/
@Unity3dCollege
@Unity3dCollege 6 лет назад
I think the issue you're having is due to normalizing the movement vector with this: Line 25: movement = movement.normalized * moveSpeed * Time.deltaTime; Remove the .normalized part and I think that's gonna fix the problem :)
@ZoroastrianMK
@ZoroastrianMK 6 лет назад
It's still the same. Thank you very much anyway, I've discovered the channel with this
@AnindoChatterjee14
@AnindoChatterjee14 5 лет назад
hearts for you!
@Chandan-xz8cd
@Chandan-xz8cd 4 года назад
hello sir can you give me your button collection
@romecarpio4107
@romecarpio4107 5 лет назад
I got it I have use dual control instead of single it works with the 3dkit
@h.k654
@h.k654 4 года назад
How did u get it to work??Please respond
@alainsfar111
@alainsfar111 4 года назад
Hey Man Thanks A lot
@kanghwichoi0621
@kanghwichoi0621 6 лет назад
where can I download the image for joystick?
@1lsgaming27
@1lsgaming27 6 лет назад
Be creative and make one with an image editor bro
@noobielive245
@noobielive245 3 года назад
IT WORKED ON PC BUT NOT ON THE PHONE
@alexis17642
@alexis17642 5 лет назад
thanks you so much for your great tutorial
@doismilho
@doismilho 3 года назад
I found zero tutorials on how to make a joystick from scratch. I actually did it myself except not using canvases. When I tried to implement in canvas, calculations and moving stuff, screen positions and whatnot got wild and I lost myself. When I found this video I thought "GREAT JASON WILL DO IT FROM SCRATCH FOR SURE!" and then.. this. =(
@detafilms
@detafilms 5 лет назад
You are king :D
@user-qs4vt3vs6z
@user-qs4vt3vs6z 4 года назад
nice video
@nikunjmakwana9369
@nikunjmakwana9369 5 лет назад
❤❤❤❤❤❤❤
@increadibleangel7980
@increadibleangel7980 6 лет назад
tjhaks man
@Unity3dCollege
@Unity3dCollege 6 лет назад
You're welcome :)
@wobionllc6897
@wobionllc6897 5 лет назад
at least add the assets file link where to get it!
@publicstaticvoid3224
@publicstaticvoid3224 5 лет назад
You should start a Udemy course.
@sasamilinkovic3258
@sasamilinkovic3258 5 лет назад
Can someone help me, where i can find "PlayerMove" script
@luke-sucks
@luke-sucks 4 года назад
Here is one: drive.google.com/file/d/0B__1zp7jwQOKMmM5c0h3RFhFWFE/view You'll have to modify it like in the video.
@h.k654
@h.k654 4 года назад
@@luke-sucks how do i modify it?
@luke-sucks
@luke-sucks 4 года назад
The Reaper Watch the video and see how they modified it. To be honest, this was 7 months ago and I don’t really completely remember.
@h.k654
@h.k654 4 года назад
@@luke-sucks For the video,it says you must alter the Input.GetAxis to CrossPlatformInputManager,but in the script,there isn't anywhere I can change this line of code.
@Arch.Stanton
@Arch.Stanton 5 лет назад
"standart asset pack" - 0 results in asset store? what to serach there?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Here's a link for you :) : assetstore.unity.com/packages/essentials/asset-packs/standard-assets-32351
@DeezDank
@DeezDank 5 лет назад
mobile input options not showing
@feralpapertiger
@feralpapertiger 5 лет назад
same here
@feralpapertiger
@feralpapertiger 5 лет назад
Nico Corini says: "BTW you have to import all the standard assets pack not only the cross platform part!"
@DeezDank
@DeezDank 5 лет назад
import standard assets of 300mb...it will work...;)
@feralpapertiger
@feralpapertiger 5 лет назад
I was still able to trim away most of the standard asset pack. Just had to be aware there were dependencies outside the folder of the crossplatforminputmanager
@shellamaeramos3211
@shellamaeramos3211 4 года назад
kamsa~
@xAnticTv
@xAnticTv 6 лет назад
but how to look with right analog
@vandebosch822
@vandebosch822 3 года назад
Update This Please!
@venomoctopus4060
@venomoctopus4060 3 года назад
I am also a mobile legends bang bang player😁😁😁
@vdjleon
@vdjleon 4 года назад
Where is playermove.cs script come from??????
@Chandan-xz8cd
@Chandan-xz8cd 4 года назад
please sir
@Tutterzoid
@Tutterzoid 5 лет назад
*****(Five Star Tut) :)
@mygames545
@mygames545 6 лет назад
Where is crlt+ piread
@babyfire6221
@babyfire6221 6 лет назад
ctrl + .
@FINISHDEM
@FINISHDEM 3 года назад
click bait
Далее
I Built a Transparent Boomerang (it's lethal)
13:10
Просмотров 3,6 млн
How to Make a Good 2D Camera
11:38
Просмотров 398 тыс.
I Tried To Beat Minecraft Backwards
18:53
Просмотров 1,2 млн
Unity3D/2D: Mobile Joystick Tutorial [NO PLUGINS]
10:17
The Clever Way to Count Tanks - Numberphile
16:45
Просмотров 941 тыс.
3 Hours vs. 3 Years of Blender
17:44
Просмотров 4,5 млн
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 704 тыс.
A new way to generate worlds (stitched WFC)
10:51
Просмотров 523 тыс.
I Made My First Game in Godot in 3 Weeks...
26:21
Просмотров 304 тыс.