Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by zayan24 · Jun 30, 2016 at 02:32 PM · unity 5movementinput.getaxisverticalyoutube

How do I activate Input.GetAxis (Vertical) on an iMac?

I am on the first episode of TheFaceGrabber's GTA-V style game tutorial series. I finished the PlayerController script correctly. When TheFaceGrabber, who is using a Windows computer, starts the game, he taps something to make the character do the walk animation. I don't know what to click on an iMac. Can someone please help me?

Comment
Add comment · Show 13
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 Whiteleaf · Jun 30, 2016 at 04:02 PM 0
Share

I'm confused, you're asking in the title about Input.GetAxis but then you're not sure what button he pressed to make the character move? Did he program a move button, is he using a pre made script?

To answer the title question, Input.GetAxis("Horizontal") uses the left and right arrow keys and A and D. Input.GetAxis("Vertical") uses the up and down arrow keys and W and D.

I'm still confused about what you're problem is in your description.

avatar image zayan24 Whiteleaf · Jul 04, 2016 at 01:52 PM 0
Share

$$anonymous$$y question was what I had to click on my $$anonymous$$ac keyboard to activate it.

avatar image zayan24 Whiteleaf · Jul 04, 2016 at 01:53 PM 0
Share

And when I press W or D or the up and down arrow keys, nothing happens.

avatar image EpiFouloux · Jul 04, 2016 at 02:06 PM 0
Share

Show us your input code, it's quite not understandable.. Did you edit the "Horizontal" and "Vertical" axis?

avatar image zayan24 EpiFouloux · Jul 05, 2016 at 11:38 AM 0
Share

We were only coding the "vertical".

using UnityEngine; using System.Collections;

public class PlayerController : $$anonymous$$onoBehaviour { public Animator Anim;

 // Use this for initialization 
 void Start () { 
 
 } 

 // Update is called once per frame 
 void Update () { 
     Anim.SetFloat("Speed",Input.GetAxis("Vertical")); 
 } 

}

avatar image zayan24 EpiFouloux · Jul 05, 2016 at 11:38 AM 0
Share

The last parentheses should be in the box.

avatar image Fire_Cube · Jul 05, 2016 at 12:05 PM 0
Share

What is in your input Vertical?

avatar image zayan24 Fire_Cube · Jul 05, 2016 at 12:42 PM 0
Share

my positive i up and my alt positive is w

avatar image Fire_Cube zayan24 · Jul 05, 2016 at 12:47 PM 0
Share

the arrows does not work? didi you also tried to Debug.Log(Input.GetAxis("Vertical")); to check if there weren't any other problems? $$anonymous$$aybe the problem is in your animator...

Show more comments
avatar image Fire_Cube Fire_Cube · Jul 06, 2016 at 08:33 AM 0
Share

Could you put the error log?

avatar image PsyCH0_Rabbit · Jul 07, 2016 at 01:53 AM 0
Share

I'm confused... I don't understand your problem

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by jtok4j · Jul 07, 2016 at 04:05 AM

I am assuming things from the title and the lack of details relating to the title, but you might want to check your project's Input settings, under project settings. Ensure there are "Axis" settings there for the Vertical axis portion.

Questions, just type away. :)

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

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

8 People are following this question.

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

Related Questions

Third Person Controller Movement on Elevated Terrain 1 Answer

FPS Flashlight Vertical Movement 1 Answer

Photon Network Movement Delay 1 Answer

Hello everyone, I would like to create a Geometry dash like triangle Transporter in unity. 0 Answers

Left and right is inverted when moving! 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