Why unity not working after launching .exe but works when build and run?
I had added keyboard inputs within the code to perform certain tasks. It is working as expected when tried on the unity editor and also on unity when build and run. Unfortunately, its not working after...
View ArticleHow to set closeKeyboardOnOutsideTap?
I don't really understand the documentation for `closeKeyboardOnOutsideTap`, I should be able to set it with `TouchScreenKeyboard.Android.closeKeyboardOnOutsideTap` and `using.UnityEngine`......
View ArticleUnity rebinded Keys names are wrong on azerty keyboard
So I have a working rebinder script, but the problem is when I want to display the rebinded keys names. The code below returns the right names for a qwerty keyboard, but not for a azerty keyborad !...
View ArticleOnly accept certan keys in unity?,Only accept certain keys in unity?
Hello! I have made a key listener in unity, but this listens to every key, but I only want A-Z, and enter. I will share the script, but im not sure how to fix this. using System.Collections; using...
View ArticleRebind - Excluding Certain Keys
Hello, I've been working on a rebind system for my game's input system. I'm only allowing the player to rebind "action" controls (jump, melee, shoot, etc), but not the movement. I have both the WASD...
View ArticleCustom Touch Keyboard instead of Native
Hello. For windows tablets, I have noticed that the native touch keyboard doesn't pop up always when an input field is clicked. As a solution I thought I could use a custom virtual keyboard to pop up...
View ArticleGamepad and keyboard act differently in multiplayer game using Input System
I am working on a multiplayer fighting game where players will move in x and y axis (jump) and will shoot towards each other. I want to get input both from keyboard & mouse and gamepad (I'm using a...
View ArticleUnity Keyboard Issue
Hello all! So over the last several days to a week, I've had issues with key input within games utilizing Unity; Rust, Phasmophobia, and V Rising to note. Within Rust, the crouch keybind is left...
View ArticleHow to make interaction independent from changing keyboard?
My character jump properly when when I press "Z" but only if selected language in task bar is english. If I choose some other language with different keyboard layout I have to press "Y" for it to jump...
View ArticleCharacter moving backwards when I press the forward key (w) and moving...
void Update() { float x = Input.GetAxis("Horizontal"); float z = Input.GetAxis("Vertical"); Vector3 move = transform.right * x - transform.forward * z; controller.Move(move*speed*Time.deltaTime);
View ArticleNo keyboard focus on Buttons instantiated from prefabs on canvas,
Currently I am Adding keyboard controlls in order to navigate a Dialog between Player and NPC by WASD and E. I have set up unitys Input controlls for this, but I run into an issue. When I start the...
View ArticleIs it possible to assign multiple movement keys to character controller
float horizontal = Input.GetAxisRaw("Horizontal"); float vertical = Input.GetAxisRaw("Vertical"); Vector3 direction = new Vector3(horizontal, 0f, vertical).normalized; if (direction.magnitude >=...
View Articleis it possible to make 2 buttons on Keyboard to jump?
so not to sure but I want to see if I make the arrow key up and space bar jump for my player (Sphere)?
View ArticlekeyCode is None when using non-US keyboard layout
Hello. I have the following code attached to a game object: void OnGUI() {   Event keyEvent = Event.current;  if (keyEvent.isKey)  {   Debug.Log ($"keyCode: {keyEvent.keyCode}; character:...
View ArticleHow to add forward, backward and side movement to a player?
I am a complete beginner so i want to learn player movement
View ArticleProblem: Can not hide suggestion when input Japanese characters in Android...
Hi every one, I have a problem with my Unity keyboard. As you type Japanese characters, the OS automatically displays suggestions. In Unity, I customized the code to hide the input field above the...
View ArticleHow to get if(forwardPressed) using the new Input System or if(movedForward)
HI float forwardPressed = Keyboard.current.wKey.ReadValue(); float backwardPressed = Keyboard.current.sKey.ReadValue(); float leftPressed = Keyboard.current.aKey.ReadValue(); float rightPressed =...
View Article2D steering wheel more movement
Hello I made a 2D steering wheel that rotates with the mouse and I would like to add more movement with the "a" and "d" buttons and the Gamepad (right, left) unfortunately i am New when it comes to...
View ArticleSetting Android Keyboard language via code
We are developing a game that's focused on learning languages. As in Duolingo, for instance, what we want is to change the language on the keyboard via code. The idea is to access the current keyboard...
View ArticleHow can I make my custom numpad functional for a mobile game I'm making?
Can I even do that? I can't find any post asking something related. I've already designed my numpad https://imgur.com/252U5vS And correct me if I'm wrong (or if there's a better way), but I think I can...
View ArticleInput System conflict between two actions
Hello all. I've been trying to use the input system to select options in the pause menu, however, it does not work when trying to bind the key to S. The other bindings, arrow down and E key, work fine....
View ArticleI need help with this script
Hello . I am new on Unity. I want to make a t$$anonymous$$rd game and downloaded on assest store about Basic Motions FREE and import on Unity. How can I Rotation with the keyboard the character on C#...
View ArticleHow to disable keyboard key with script
Hello.How I can disable a key on keyboard in a script. I want to make that when im relaoding so click "R" key than disable mouse0 key -- not functional. Is this possible? :) Thanks in advance! :D
View ArticleDetect when key is lifted (New Input System)
I am currently working on a platform game and am not sure how to detect when a key is lifted using the new input system. I would like to know, if possible, can you detect when the key is lifted and...
View ArticleHow to set Num Lock state to true at game start?
I have a game I'm creating to learn Unity, in co-op mode, the PlayerTwo is controled by KeyPad Numbers, but it only works if Num Lock is activated. Is there a way to activate Num Lock from start? Or it...
View ArticleHow do i shoot an arrow in the direction of the player when i press the...
I want to make a way to shoot an arrow when i press the space bar in the direction my player is facing and make it disappear when it collides with something. How do i do this?
View ArticleUnity Ctrl + W crash
When I click Ctrl + w to restore a missing click, very often my unity editor it crashes Unity version 2021. 3.11f
View ArticleGame screen doesn't respond to the keyboard,Game screen doesn't respond to my...
The game screen doesn't respond to any inputs from my keyboard. It used to, but now it doesn't, even after undoing the career ending change. When I type, objects in the tool bar light up. z toggles...
View Articledisplaying android keyboard
Hi, How can I display the android keyboard in my app when I launch the app in my phone? When I first open the app, the keyboard is displayed, but when I type, the text doesnt get mapped to the tiles,...
View ArticleInputSystem Controller and Keyboard at the same time
I have a game that is local coop where I'd like the players to be able to use both their own controller and a shared keyboard. So player 1 can use their joystick to move OR the arrow keys, and player 2...
View Article