I'm new to Unity, and I've taken a simple coding tutorial so I can read and understand coding. I'm having troubles finding how to assign controls to actions, like a simple attack button by clicking the mouse. If someone could please help me out I would be very happy.
If you're new to unity, try looking for a tutorial. Most are outdated now, but I'm sure you can salvage a ton of information from them.
Answer by commodore
Jan 21, 2013 at 04:40 AM
You're looking for the Input scripting reference:
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
11 People are following this question.
The name 'Joystick' does not denote a valid type ('not found')
Find out if any Button on any Gamepad has been pressed and which one
Button click moves GameObject to specific position
Character Controls like the game "Fable"
Adding single Event listener to multiple ui buttons via scripting