Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by oinkoinkflapflap · Dec 04, 2010 at 05:31 PM · inputbuttongetbuttondownshift

shift key input script

simple, like "jump" is space and "Fire1" is click ect.. whats shift in scripts?

thanks 4 your time :)

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kyle · Dec 04, 2010 at 05:43 PM 0
Share

you could use

if(input.Get$$anonymous$$eyDown("shift"))

I beleive. buttons usually for a quick nickname of keys.

avatar image oinkoinkflapflap kyle · Dec 06, 2010 at 03:52 PM 0
Share

thanks 4 your time but it says "input button shift is not set up" :/

avatar image kyle kyle · Dec 09, 2010 at 01:12 AM 0
Share

did you type Get$$anonymous$$eyDown? or GetButtonDown? because if it's GetButtonDown it won't work

6 Replies

· Add your reply
  • Sort: 
avatar image
11

Answer by stormdead · Aug 17, 2012 at 10:50 AM

The shift input "Positive Button" is "left shift" or "right shift"

All examples:

"right shift", "left shift", "right ctrl", "left ctrl", "right alt", "left alt", "right cmd", "left cmd"

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image morfar · Apr 14, 2014 at 06:10 PM 0
Share

Thanks, this is what I needed.

avatar image amirl_unity · May 25, 2018 at 11:33 PM 0
Share

Thank you!

avatar image
8

Answer by Ejlersen · Dec 29, 2010 at 06:34 PM

You can also use:

Input.GetKeyDown(KeyCode.LeftShift)
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image oinkoinkflapflap · Dec 30, 2010 at 07:31 PM 0
Share

ah brill cheers :D

avatar image Digestivbiscuitsm · Aug 13, 2017 at 09:32 AM 0
Share

Is there a way to do this using if (Input.Get$$anonymous$$eyDown("Left shift") { //Bla bla bla }

avatar image
1

Answer by Moomooz · Aug 15, 2012 at 11:17 AM

I cannot seem to add the left shift key in the input axes in the editor if i type shift or leftshift it just vanishes ?anyone have a clue why ,this is becoming a massive hindrance :( I am just trying to add turbo to the car tutorial with left shift but failing miserably :()

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DESTRUKTORR · Sep 02, 2012 at 02:28 PM 1
Share

If it's not a solution, it's a comment. Don't post comments as answers.

If it's a question that isn't related, it's a new question. Don't put new questions in other questions, as answers or comments.

avatar image raphydaphy1324 · Jan 15, 2014 at 03:26 AM 1
Share

I found out why. Try typing in right shift in the negative area then enter left shift. I did it and it worked. BTW I know im kinda late to reply (:

avatar image eneroth3 · Dec 20, 2018 at 04:09 PM 0
Share

It's spelled "left shift" as two words for some reason. Any slight "error" makes the field go blank. I first thought the whole Input$$anonymous$$anager was broken, but it is just really bad at taking input.

avatar image
0

Answer by Xaxium · Oct 14, 2013 at 03:28 PM

Put "left shift" in the Positive Button field and make sure the Type field is set to "Key or Mouse Button".

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by raphydaphy1324 · Jan 15, 2014 at 03:49 AM

I found out why. You need to put "right shift" in the negative button then it works.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Using a coroutine to wait for a button press? 1 Answer

Ensuring that a button is released before checking that it's pressed? 2 Answers

How to use Button as Cross Platform Input 0 Answers

how to create buttons using iphone look and feel?? 2 Answers

Jumping randomly doesn't work 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges