Thanks for this great video. you made my day. I finally know wtf is a "virtual mouse". With my version of unity 2020.3.12f1 I got two errors: - A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details. - IndexOutOfRangeException: Index was outside the bounds of the array. I fixed this unpairing the device before actually remove it I added "playerInput.user.UnpairDevice(virtualMouse);" before InputSystem.RemoveDevice(virtualMouse);
@samyam
2 жыл бұрын
Thanks!! Glad it helped!
@updaters44
2 жыл бұрын
Thank you =)
@metrixkita
2 жыл бұрын
THANK YOU. I've been getting this error on random and it was breaking my game! Couldn't figure it out by myself!
@audiocue
Жыл бұрын
thought it fixed my error but didnt. back to square one.. Thinking of ditching this in fact. It works only on one scene and there seems to be no fix for it.
@danielhayward6652
6 ай бұрын
Thank you.
@XXBrunX
2 жыл бұрын
This was the tutorial that I had requested a few months ago, I'm so glad that you made it. Thank you, great tutorial as always!
@samyam
2 жыл бұрын
Took me a while 😅 Thank you!
@rapajara
Жыл бұрын
This tutorial helped me a lot, but I just want to point out that because Time.deltaTime is used to determine the input value used to move the cursor, when the game is paused (i.e. timescale is set to 0f) then the cursor won't work anymore. So if you want to use this with a pause menu or something similar you can use Time.unscaledDeltaTime instead.
@ryanbeattie9508
Жыл бұрын
Great advice, I would have ran into this eventually in my project lol
@regejs
Жыл бұрын
Thank you!!!
@yubabasUpdo
10 ай бұрын
This was so great! Thank you so much! I had some trouble with it registering many clicks at once, so I ended up putting GamepadClick as a separate Action (not in Click alongside VirtualMouse click). I used that (both context.performed and context.canceled as a bool) to call a method with your mouseState.WithButton(MouseButton.left, _bool) logic. Works a treat! (I think this is because Click is "pass-through" not just "button", so it could be called multiple times)
@libberator5891
2 жыл бұрын
14k subs, only 160 views and no comments in two hours. Think the commitment to invest 30+ min is what's scaring people away, but I'm sure this is top tier quality. Ok quiet down everyone, I'm going to watch this
@samyam
2 жыл бұрын
That's the fastest I could go while still explaining everything!
@Vastlee
2 жыл бұрын
You replied to this 3 hours after it was posted. I didn't see it until 6 hours after it was posted & that was just because I happened to be looking. It 'might' be beneficial to break it up into a playlist, but honestly, fully & well explained tutorials with less breakup can be a goodness.
@samyam
2 жыл бұрын
I don’t think I should break it up, creates unnecessary confusion. Thanks for the advice!
@AndrewP_PSO2Music
Ай бұрын
Thank you so much for this video tutorial, I looked through like five different tutorials by other people and yours was the only one that solved my specific problem that was making virtual devices and pairing them with the PlayerInput component. Now I can make my smash bros character select screen and not go insane!!!!! Cheers. o/
@goldpumpkin8291
8 ай бұрын
Thank you very much. It was really helpful. I needed the Virtual Mouse feature for my PC game project. I wasted the weekend and still couldn't solve it. However, after going through this tutorial, the problem has been resolved. I'm truly grateful.
@Luvseatshawty
7 ай бұрын
Thank you so much for this! I was certain I wouldn't be able to find a tutorial THIS specific. Now all I need is a color selector.
@pixelshenanigans1511
2 жыл бұрын
Great tutorial! I'd almost given up with adding controller support with the new input system. Don't know how I would have found out this information if you hadn't covered it at this level of detail. Please keep the more advanced tutorials coming!
@samyam
2 жыл бұрын
Thank you! :)
@glitchedpolygons
Жыл бұрын
It's so disturbing how BAD Unity's samples are... Thanks for this! It helps :)
@Gears2Game
Жыл бұрын
I really appreciate this, I am implementing a different approach by using controllers to switch between buttons but I had troubles on doing that when entering and exiting input fields. only to find out that assassins creed implements this virtual mouse, so I searched for it and thanks to you. it's a success for me, easier to implement than my previous one. More power.
@victorlapin2080
2 жыл бұрын
Love your thorough input system tuts, they're great =) also, off the record, nice to see someone else using VS Code
@samyam
2 жыл бұрын
Thank you!!
@galerez2250
Жыл бұрын
For whoever wants the same input on another device of the same type: using UnityEngine.InputSystem; PlayerInput.Instantiate(PlayerPrefab, controlScheme: "yourControlScheme", pairWithDevice: Gamepad.current); In the action map there should be a scheme for each potential player on the same device.
@arcanelemon2507
2 жыл бұрын
i just discovered your channel and you are quickly becoming one of my favorites! thank you for the tutorials and keep being awesome! :)
@samyam
2 жыл бұрын
Yay!! Glad you like it thank you! :)
@mantavisions2362
2 жыл бұрын
33:40 if you're still getting errors after adding the if statement, what I did to fix it was move the if statement AFTER you unsubscribe from UpdateMotion and OnControlsChanged. Mine was crashing when loading a new scene, saying there's no virtual mouse added. private void OnDisable() { InputSystem.onAfterUpdate -= UpdateMotion; playerInput.onControlsChanged -= OnControlsChanged; if (virtualMouse != null && virtualMouse.added) { InputSystem.RemoveDevice(virtualMouse); } }
@HollowGameStudio
26 күн бұрын
Thanks a ton for this! Saved me a large headache!
@mantavisions2362
26 күн бұрын
@@HollowGameStudioglad to help!!!
@tojoh-dev
8 ай бұрын
Thanks for the video @samyam, some really cool stuff in there. I ended up turning off your coded click behaviour, because I think in later versions of unity just mapping gamepad south to the click in the input system does the same job. I also was registering a lot of extra clicks in certain situations, this was because of the submit function, if you focus on a button and retrigger it (ie click on it once then again), it seems like as well as the click action, the submit action is calling the button's on click function multiple times. A quick solution for me for this was removing the submit mapping for my UI. I will need to see the implication of this for things like search boxes but for now its working well. It's tutorials like yours that make Unity actually viable, great job!
@HollowGameStudio
23 күн бұрын
Thank you very much for this comment! I had to remove the coded click behavior and the submit mapping from my UI as well.
@doinghelicopterthings8348
2 жыл бұрын
Great video! This worked really well, its surprising its so much more difficult to implement this vs everything else gamepad related.
@Noir-Road
2 жыл бұрын
I have a really hard time to set this up. However, this is really really cool. Nice freaking job Samantha.
@samyam
2 жыл бұрын
Thanks! :)
@Sincerelysleepy
2 жыл бұрын
Great tutorial! Thank you. One comment, it would be good to use unscaledDeltaTime instead of deltaTime for moving your cursor. I have a "pause" in my game and set the timescale = 0 and in that case, the cursor stops moving.
@samyam
2 жыл бұрын
Thanks for the tip!
@gamezdev4905
2 жыл бұрын
This is exactly what it was happening to me. Thanks for the tip and Sam for the great video !
@asvirido
Жыл бұрын
thanks bro
@JohnZyski
6 ай бұрын
Thankyou for this. It was exactly what I was looking for.
@Luvseatshawty
7 ай бұрын
It would be awesome if you could make a tutorial of how to implement this with a color picker. I have a lot of trouble with UI functionality as far as the new input system goes.
@TheDeathMVP
Жыл бұрын
If anyone knows a solution for "NullReferenceException: Object reference not set to an instance of an object" on the OnControlsChanged function for the InputState.Change line of code. The script doesn't have any errors, but the editor mentions it only. Also I followed everything in the tutorial and I can't seem to press buttons on the UI regardless of input. I notice it after implementing the gamepad cursor script
@KDSBestGameDev
Жыл бұрын
One of the best tutorials on new input system there is.
@samyam
Жыл бұрын
Thank you! 😄
@neenaw
2 жыл бұрын
Really great video. Reminds me of the time I created my own Cursor system, because Unity's Cursor System doesn't work consistently across HTML5, Mac and Linux 🙄 Anyway, as always, samyam is the GOAT.
@samyam
2 жыл бұрын
Thank you neenaw 😁😁😁
@kazru7703
2 жыл бұрын
Thanks for this tutorial,learned a lot from your videos. Nice explanation and Clean Code really make this tutorial easy to understand.
@samyam
2 жыл бұрын
Thank you!!
@oshpunch8501
7 ай бұрын
Awesome! Just what I needed for my quest 😍
@audiocue
Жыл бұрын
if you want to change scene and go back to the original scene this code break and adds a new user each time. I asked samyam to help but got a very generic answer even though I did sign up to patrion. If anyone can tell me why users are being added at each scene change (which again breaks the code with null refs) I would be very grateful.
@johnmichaeldeleon3298
2 жыл бұрын
Having an optional Gamepad in the Mouse & Keyboard control scheme was causing an issue for me. Had to remove it from the control scheme to get the OnControlChange to work properly.
@Pikewin
2 жыл бұрын
Awesome video! I'll use this feature in my incoming game. Thanks for your content! 😸
@samyam
2 жыл бұрын
Yay!
@chrisdietz3771
2 жыл бұрын
Thank you for this tutorial. I was trying to figure out a way to move an IK target similar to how it worked with a mouse. With some tweaks I was able to make this work and even clamp it in a radius around the player so they don't have to move the virtual mouse cursor from all the way across the screen.
@samyam
2 жыл бұрын
Sounds awesome!
@kuraikage15
Жыл бұрын
This is really helpful! Thank you Sam! 😁
@cartercantcode4853
Жыл бұрын
Thank you so much for this! I got the code working in my new game!
@samyam
Жыл бұрын
Carter Can Code!
@LittleTreeX
2 ай бұрын
I came for buddon, but stayed for the tutorial.
@louiezedan5520
Жыл бұрын
Hey for anyone following along at 24:08 , make sure you delete all of the Virtual Mouse items listed because if you leave one remaining you won't be able to interact with the button.
@GameIsFun85
Жыл бұрын
tnx very usefull tutorial
@J1_Studios.
Жыл бұрын
awesome vid, and only one I could find on this topic.
@elepunto.
2 жыл бұрын
Everything works, but for whatever reason my virtual mouse only moves on a straight line from the bottom left corner to the top middle, and from there to the top right corner
@Alperic27
2 жыл бұрын
kudos for even suggesting to cache the button-pressed state …. 👍
@NicolasLagnitre
Жыл бұрын
Thanks for this tutorial !! Really helpful !
@Nick28th
Жыл бұрын
fantastic tutorial! having a problem right at the end where the controlschemes wont change. ive checked every box i could and watched the video so many times. thank you!!
@popipopi3126
2 ай бұрын
Hello, if I have a lobby scene that load my game scene, and I wanna use this on my game scene, will it work? Cause I followed a similar tutorial and it seemed to work fine in that specific scene but when the scene was loaded by another scene it didn’t work at all
@popipopi3126
2 ай бұрын
yup it didnt work, seems like that loading the scene from another scene makes unity ignore all Input System related scripts. For example, when i load only the game scene the cursor starts from bottom left as in the video, if I load the game scene from the lobby scene, cursor image is in the middle of the screen, and i cant use the controller at all. So its not a controller problem, otherwise at least the cursor would spawn in bottom left angle. Any fix?
@NagaSaiKrishnaDandu
Ай бұрын
Thank you. This is great video. This is very useful in my game. I tried scrollWheel using Gamepad rightstick and its not working properly. Is there a correct way to add this option?
@JakeMakesGames
Жыл бұрын
love the tut! is there any way to get a 2d weapon to rotate towards the cursor when using the joystick?
@jnlundberg
8 күн бұрын
Thanks for a really interesting tutorial! However, I realised after completing it that my gamepad is recognised as a "Game VIB Joystick" (Its a Hama Greystorm). Can I modify the script and editor settings to be useable with this controller? Plz help.
@mister-x2
2 жыл бұрын
Got back into Unity after a couple years of absence (talk about bad timing, lol) and this helped a lot getting me up to speed, so thanks. Think is worth it to get into UI Toolkit also, or should I stick to good ol' Canvas?
@i.c6409
2 жыл бұрын
Thanks, I just sub your channel! Keep up the great content! very useful tutorial! Thank you!
@samyam
2 жыл бұрын
Thanks!
@estanislaozubiri7924
10 ай бұрын
Thank you, this is awesome. For some reason, Cursor.visible is not working when I switch to the gamepad, so the regular pointer is always showing on my screen... any ideas of how I could fix this?
@lucaschagas8588
2 жыл бұрын
Amazing! You're the best 💖
@samyam
2 жыл бұрын
Thanks! :)
@Vastlee
2 жыл бұрын
Now I can have my cursor click on all my buddons!
@Hoglet.Interactive
2 жыл бұрын
Great tutorial as always! Actualy recommend to use update chceck for controls changig as You shown at 32:45, because of inputsystems bug at loading scene or even after reload a same scene the inputsystem stops propagate oncontrolchange :(
@samyam
2 жыл бұрын
Thanks! I haven’t tested it but I wouldn’t be surprised 🤦♀️
@TheCyrus1988
2 жыл бұрын
Forth time i tried this and my curser still does not move with my xbox game pad.
@AaronAsherRandall
Жыл бұрын
Same here. My cursor is stuck at the botton left of the screen...
@ДосталиЕвский
Жыл бұрын
same here, did you find a solution?
@TheCyrus1988
Жыл бұрын
@@ДосталиЕвский I went and implemented the old system for the controller support. Hence the keyboard is using the new input system and the controller support is using the old input system which i force once a controller is detected in the scene.
@ДосталиЕвский
Жыл бұрын
In my case Visual Studio replaced ReadValue() with ReadDefaultValue() here: Vector2 deltaValue = Gamepad.current.leftStick.ReadValue(); deltaValue *= cursorSpeed * Time.deltaTime; Vector2 currentPosition = virtualMouse.position.ReadValue(); So when I fixed it works as a charm:)
@TheCyrus1988
Жыл бұрын
@@ДосталиЕвский Thanks for your response. I attempted a similar solution, but I had issues with the confirm buttons not working correctly. At that point, I decided to switch back to the old input system. It allowed me to trigger custom events when I called the client's DLL file for inputs.
@guccicontroller
2 жыл бұрын
Great tutorial! problem is that when I switch to the gamepad cursor it can't switch back to the mouse and I really need to know how to fix that edit: now the mouse isn't working AT ALL, only the gamepad cursor
@brashdigital423
2 жыл бұрын
Hey, great tutorial as always. Does anyone know how you would fetch the position of this Cursor in another script? Like a weapon script that handles 2d weapon rotation.
@flyegg7212
2 жыл бұрын
Thanks!!! Very useful!!!
@acrosmic
2 жыл бұрын
Great tutorial, it help me a lot. Thanks !! ... I just found an error when i used with Android gamepad, because in Android there is no real mouse, so i just added this verification "if (currentMouse == null)"
@chrisb9042
9 ай бұрын
^w^ thank you!!!
@CurtendoDSi
Жыл бұрын
Thanks for the tutorial! i have one problem though, how do you automatically switch control schemes?
@rohithnanthan
2 жыл бұрын
Hi, the virtual mouse is not working when the cursor is locked. I am using this for a different use-case though. Anyways to get around this ? I am setting the cursor to lock state with Cursor.lockState=CursorLockMode.Locked and I want to move the virtual cursor in world canvas to where I look at it. I don't want to use colliders for raycast but rather use this virtual mouse cursor solution as it will make it easier for me to manage world canvas interactions. The cursor works fine when lock state is confined and visibility is turned off but this limits the user to free-look as the mouse will only move within screen bounds.
@MadnessofDuces
Жыл бұрын
Not sure if anyone else is having issues with this, but I had problems where, after clicking a button, it always got clicked again on the next click, even if I moved the virtual mouse away. I managed to fix it by resetting the event system's current selected object whenever "aButtonIsPressed" changed. if(previousMouseState != aButtonIsPressed) { EventSystem.current.SetSelectedGameObject(null); ... You can also save a little bit of overhead by subscribing/unsubscribing to InputSystem.onAfterUpdate when the control scheme changes, instead of in OnEnable and OnDisable. Great tutorial! Thank you very much :D
@arjunm1246
Жыл бұрын
Hi , I followed ur tutorial and when I tested my game its not moving using gamepad. Is there something I should double check. Saw the whole video again today. Could anyone help me out
@pewpew518
2 жыл бұрын
you know what, I think im just gonna put 2D triggers on everything and do on trigger enter thank you very much lol
@samyam
2 жыл бұрын
Hey if it works for you xD
@Sanchez9241
2 жыл бұрын
at 19:13 its more easier to divide virtual cursor position to canvas scaleFactor.
@NicolasLagnitre
Жыл бұрын
I’ve just finished this tutorial but I’ve à problem. The gamepad cursor doesn’t move ! I’ve no errors and the cursor go on the bottom left corner but no movement 🫤
@ДосталиЕвский
Жыл бұрын
same here, did you find a solution?
@NicolasLagnitre
Жыл бұрын
Not yet
@ДосталиЕвский
Жыл бұрын
@@NicolasLagnitre it's a pity :(
@samyam
Жыл бұрын
Try checking the Input Debugger to see if the inputs are being picked up. We also have a Discord in the description that you can join and ask for more in-depth help
@ДосталиЕвский
Жыл бұрын
@@NicolasLagnitre @user-uq5li3wc4y 1 минуту назад In my case Visual Studio replaced ReadValue() with ReadDefaultValue() here: Vector2 deltaValue = Gamepad.current.leftStick.ReadValue(); deltaValue *= cursorSpeed * Time.deltaTime; Vector2 currentPosition = virtualMouse.position.ReadValue(); So when I fixed it works as a charm:)
@chimichangle
2 жыл бұрын
PeRFect, thank you!
@sliceggjd
2 жыл бұрын
hello i have a problem where my cursor isent reacting when i hover over the ui and when i click nothing happens? do you know how to fix it? Edit: its working now
@mariusbrt2284
2 жыл бұрын
What was the problem please i have the same issue
@ДосталиЕвский
Жыл бұрын
Thank you very much for this tutorial. I finally managed to get everything working. Now I'm trying to figure out how to use it not for the UI, but for hovering the cursor over objects in the game. So far OnControlsChanged doesn't work. Maybe something is wrong with the input system. Could you help and tell me how can I use your script for my purpose?
@MaverickPlayer
Жыл бұрын
Thanks for a great tutorial! Turn on /off a few times of "GamePadCursor.cs Component", I got these errors. What am I missing? 😅 Could not find active control after binding resolution UnityEngine.InputSystem.LowLevel.NativeInputRuntime/c__DisplayClass7_0:b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)
@jedoncarter8173
2 жыл бұрын
Any idea why when I move my physical mouse after I press play it shuts off gamepad clicks? I can still move the virtual mouse with the gamepad controller but I cant click if I do anything with the physical mouse
@arturorojas1062
2 жыл бұрын
I got this weird behavior when I move the currentMouse to be in the position of the gamepad cursor (switching from gamepad to mouse), the mouse cursor is always on the opposite Y position of the screen. I set the mouse cursor to always follow the gamepad cursor on the update method (if using gamepad) and when I move the gamepad cursor with the stick up, the mouse cursor moves down. X value is good, but for some reason Y is inverted. As anyone else seen this?
@JamesTaylor-rater193
Жыл бұрын
I had an issue with this where my virtual cursor position is offset and cant seem to go past the middle of the screen Can you suggest what part of the code i should look at to resolve the problem?
@spectacularnerdx
Жыл бұрын
Hi there, for some reason on my title screen the frame rate of the cursor is pretty bad, but on my stage scene it moves smoothly, any idea of why this might be happening? Great tutorial!
@Netherzapdos
Жыл бұрын
I dont know if anyone will reply but I am always getting a "NullReferenceException: Object reference not set to an instance of an object" - and this happens at the start of the Enable() method when we add the virtual mouse device. It seems that it cannot add the virtual mouse so the variable virtualMouse is always null. I've tested it in a fresh unity, reimported input system but still nothing.
@ElianeGameDev
Жыл бұрын
Hey, does anyone know if it's possible to switch from this cursor mode to selecting buttons only with the joystick, without the cursor ? I want one behaviour or the other depending on what panels are active on my canvas. But for some reason I can't find a way to achieve that.
@GamesBySaul
2 жыл бұрын
Hey Sam! I imagine there's a low chance of this, do you know how to get this working for more than one player? The tutorial works really really well! But I noticed that if I have a player join the game on mouse and keyboard, and then controller, then the person with the controller can't click/interact with buttons but can still move the cursor around And vice versa for the person on mouse and keyboard! Been knocking my head over this😅 Edit: I will say on this, my system is quite different to yours as I don't have a player input component on the cursor object itself as it messed with some other systems in my game, but now I am tempted to go back to using that, and just work around the issues
@samyam
2 жыл бұрын
Hey Saul! Have you checked my video on Local Multiplayer? May help you out :) And check the pinned comment as well. kzitem.info/news/bejne/yJWplq1rsnipjJw
@GamesBySaul
2 жыл бұрын
@@samyam Hey! Thanks, I think I did check that out when I started this project! But I think the pinned comment will be useful as it seems that the Cursor Object's input component consume keyboard, so you can't join the game as another player! Will look into the comment then, thank you!
@Blogsasdf
2 жыл бұрын
Hi, great video! One question, when I hit the click button it seems to be detecting in two parts, do you know the possible reason?
@ДосталиЕвский
Жыл бұрын
23:01 Do I understand correctly that adding button A in this place is not necessary, since it is specified in the script?
@mantavisions2362
2 жыл бұрын
If OnControlsChanged isnt working for you, make sure "Auto-Switch" is enabled on your PlayerInput component.
@TendoDS
10 ай бұрын
also make sure that you only have one Player Input Component in the scene so the auto switch works
@feryaz
Жыл бұрын
Thank you very much! I have one problem though, how do I get this to support dragging? OnBeginDrag never gets called :/
@amrelo67
2 жыл бұрын
For some reason, I can't use this to press the buttons of joystick usb.
@HugoLSouza-xt7ix
Жыл бұрын
One question, this cursor works like a mouse? Can I use this with OnMouse functions?
@2ksnakenoodles
2 жыл бұрын
is it possible to make an input setup menu like overcooked for local co-op? Great tutorial :D
@samyam
2 жыл бұрын
Anything is possible!
@tristanlapointe9087
Жыл бұрын
My mouse cursor is still visible when switching to the gamepad control scheme. Anyone else has this issue?
@lemonmade5785
2 жыл бұрын
Please I need so much help I keep getting two errors... 1. error CS0246: The type or namespace name 'Mouse' could not be found (are you missing a using directive or an assembly reference?) 2. error CS0246: The type or namespace name 'PlayerInput' could not be found (are you missing a using directive or an assembly reference?) Please I have been trying to figure this out for several hours, I need help...
@samyam
2 жыл бұрын
Did you import using UnityEngine.InputSystem at the top of the file?
@random_precision_software
2 жыл бұрын
Thank you I finally got my grappling hook system working with both mouse and Xbox controller using b BOTH input systems. but I've just thought world unity let you do that when you finally build the project?
@samyam
2 жыл бұрын
Yes you can select both, Edit>Project Settings>Player>Active Inout Handling
@random_precision_software
2 жыл бұрын
@@samyam yes, I've done that, so there won't be any problems when I build the game ? And thanks for your game pad vIdeo I wouldn't of been able to do it without you!
@NotCubicRubic
2 жыл бұрын
Will this implementation work with UI's drag and drop interface?
@orestecolatruglio5163
Жыл бұрын
Please help. I can't add "InputSystem.AddDevice..." because Unity says "InputSYstem does not contain a definition for AddDevice"
@samyam
Жыл бұрын
Should work, make sure you spelled it correct and it is caps sensitive. And you included the using UnityEngine.InputSystem namespace up top. docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/Devices.html
@Speedpotato
2 жыл бұрын
Can you make an app that uses the controller as mouse pointer for android?
@thumbwiz
2 жыл бұрын
Thanks for the great tutorial. Is there some way to get the button click to stop registering twice? It goes into the function on press and then again on release of the gamepad button.
@samyam
2 жыл бұрын
Add a Press Interaction to your action with the Press Only Behaviour
@thumbwiz
2 жыл бұрын
@@samyam Thanks samyam. I think my issue turned out to be the button navigation setting. Once I set it to None, my issue went away. The system may have been reacting to a previously active button, if that makes any sense.
@doinghelicopterthings8348
2 жыл бұрын
@@thumbwiz This right here fixed my same issue. Thanks Les! That was seriously bugging me
@codog2003
2 жыл бұрын
Does anyone know how to fix this error? 'PlayerInput' does not contain a definition for 'user' and no accessible extension method 'user' accepting a first argument of type 'PlayerInput' could be found (are you missing a using directive or an assembly reference?) Been looking back through the vid to see if I've gotten anything wrong but I haven't found anything.
@lemonmade5785
2 жыл бұрын
Same i need help
@mauote
10 ай бұрын
Highlight the .user part and assign it to unityengine.inputaction.users;
@jonnchambers7606
Жыл бұрын
Where is the playerinput component?
@Zoggi
2 жыл бұрын
Cool
@arionpaul6208
2 жыл бұрын
Can you make video about UI Toolkit please, and is it possible to use it with new input system?
@samyam
2 жыл бұрын
I have it on my list, but I'm not sure when I'll get to it. According to this thread it does work but it's not as stable as using the old one: forum.unity.com/threads/ui-toolkit-which-input-system.1046978/
@TehKatanaMaster
Жыл бұрын
god bless your soul
@diliupg
2 жыл бұрын
Has anyone here been actually programming a third person or first person shooter game with UI menus USING THE NEW INPUT SYSTEM? If you have, have you been able to use the UI and the player controls on the same scene? I have looked everywhere but no one has a proper solution to this. The two simply does not work together. If you have the player controls the UI simply stops working with the NEW INPUT SYSTEM. Anyone?
@samyam
2 жыл бұрын
What are you trying to do exactly? You can disable/enable a map depending on the occasion.
@thalistonfnascimento
Жыл бұрын
I'm having the same problem and looking for a solution for months with no response, did you get anything?
@Foxxyz_TV
2 жыл бұрын
hi i want to make a top down movement game with weapons, would this gamepad cursor system work with the weapon???
@samyam
2 жыл бұрын
Don’t see why not!
@LongyYT
2 жыл бұрын
will this work if im trying to aim and shoot. and the gun follows the the crosshair
@samyam
2 жыл бұрын
Yeah! This just tells you how to make the crosshair, the rest is up to you!
@AlexFigar
2 жыл бұрын
I was wondering how I was gonna setup controls for an Apple TV game.
@samyam
2 жыл бұрын
Hopefully this helps!
@random_precision_software
2 жыл бұрын
I suppose this could be converted to the OLD input sys?
@samyam
2 жыл бұрын
This video is specifically designed for the new input system to make use of the virtual mouse, using the old system would probably use a different way such as using the StandaloneInputModule docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.EventSystems.StandaloneInputModule.html forum.unity.com/threads/solved-virtual-mouse-cursor-that-triggers-ui-events.396937/
@lufttaffy
2 жыл бұрын
Good Vid
@sangareshwarannadar_official
2 жыл бұрын
Hey Sam when I build my project to android it gives me a gradle project error i am using unitys latest LTS version
@samyam
2 жыл бұрын
What's the error?
@sangareshwarannadar_official
2 жыл бұрын
@@samyam it just shows project build failed with 3 errors All sdk jdk properly installed Seems like my windows sucks As got this issue after updating windows Thanks for the reply
@sangareshwarannadar_official
2 жыл бұрын
@@samyam can u stream making a game in unity I'll really enjoy Still ur current unreal stream is also good But I don't understand anything
Пікірлер: 176