• 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

Gun Script

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Old_Gegg commented

How to rotate gun only on X and Y axis?

Apr 23, '22 rotate object·input.getaxis·rotating·gun script·gun position

1 Reply

0 Votes

avatar image

Patpig10 commented

How to add a Gun Reload feature to my script

Mar 13, '22 gun script

1 Reply

0 Votes

avatar image

legon2007 asked

Attaching one variable to another one by inspector

Mar 12, '22 in Help Room

0 Replies

0 Votes

avatar image

Vuvuvi asked

Problem with the gun reloading

Mar 11, '22 in Help Room

0 Replies

0 Votes

avatar image

NotoMuteki asked

How to bring reticles in different situations to the center of the camera?

Mar 7, '22 camera·fps·gun·gun script·scope

0 Replies

0 Votes

avatar image

SixGames101 answered

How can I make an object always look at the mouse?

Mar 3, '22 rotate·lookat·gun script·gun movement·gun position

2 Replies

0 Votes

avatar image

somerandomhacker asked

My bullet isn't facing the correct way when I shoot it out of my gun. Help!

Feb 4, '22 rotation·bullet·gun script

0 Replies

0 Votes

avatar image

Vuvuvi answered

2D gun aiming problem

Jan 26, '22 in Help Room

1 Reply

0 Votes

avatar image

marshalld1999 published

Animation clip only plays once when button is pressed, and then will not play again

Oct 29, '21 in Help Room

2 Replies

1 Votes

avatar image

Coulomb1 answered

WaitForSecond Corountine Sleep Time Varies

Oct 17, '21 c#·3d·bug·gun·gun script

2 Replies

0 Votes

avatar image

FElineRAptor7273 answered

Why does my full auto gun script not work?

Sep 22, '21 in Help Room

4 Replies

0 Votes

avatar image

lovewessman edited

How do I make it so that my bullet projectile for my gun does damage?

Sep 7, '21 scripting beginner·gun·bullets·gun script·bullet-prefab

1 Reply

0 Votes

avatar image

logicandchaos commented

trying make a working raycast damage and death

Aug 10, '21 animation·death·gun script

0 Replies

0 Votes

avatar image

Yoshirouuu commented

How can I shoot bullets that you can aim with the crosshair?

Jul 15, '21 scripting problem·fps·shooting·gun·gun script

1 Reply

0 Votes

avatar image

Pogrammer88 commented

Why does unity subtract ammunition per frame?

Jun 8, '21 in Help Room

1 Reply

0 Votes

avatar image

AbandonedCrypt answered

How to make a shotgun boost effect?

Mar 16, '21 gun script·forces

2 Replies

0 Votes

avatar image

unity_ek98vnTRplGj8Q answered

How to make a bullet spread

Mar 4, '21 bullet·gun script·spread

1 Reply

0 Votes

avatar image

zafranalon asked

hi, i am making a retro game and i have an enemy, and i also have a shoot animation, but whenever i click the mouse the enemy dies, i only want it to be on the animation, how do i do it?

Feb 14, '21 in Help Room

0 Replies

0 Votes

avatar image

SkillcraftHD commented

2d how to make a recoil for the player with the gun?

Jan 30, '21 in Help Room

0 Replies

0 Votes

avatar image

deqnboom edited

Basic damage script is not working

Jan 24, '21 in Help Room

0 Replies

0 Votes

avatar image

Will-Urquhart asked

How do I fire a laser at the player's Y level.

Dec 30, '20 in Help Room

0 Replies

0 Votes

avatar image

sacredgeometry edited

when float is less then zero, do action once

Dec 29, '20 button·3d·gun·aim·gun script

1 Reply

0 Votes

avatar image

emiratakans asked

i want my hero can do auto aim or auto shooting

Nov 10, '20 in Help Room

0 Replies

0 Votes

avatar image

Gabimela asked

How do you get the R1 and R2 buttons to work on the PS4?

Nov 9, '20 c#·unity5·unityeditor·controller·gun script

0 Replies

0 Votes

avatar image

jamesorion44 asked

Gun won't face target

Oct 28, '20 in Help Room

0 Replies

0 Votes

avatar image

rhapen commented

Shoot nearest enemy with raycast

Oct 28, '20 scripting problem·raycast·3d·gun script

1 Reply

0 Votes

avatar image

wewewu commented

Particle System isn't playing

Oct 27, '20 scripting problem·particlesystem·gun script

1 Reply

0 Votes

avatar image

kmay11005 edited

How to create recoil/bullet spread for weapon?

Oct 19, '20 in Help Room

0 Replies

0 Votes

avatar image

Danteb132 asked

Ammo changing between guns

Oct 7, '20 in Help Room

0 Replies

0 Votes

avatar image

Siliko answered

I've been trying to make a gun script, but somehow the boolean to tell when the bullet is destroyed doesent work

Sep 12, '20 in Help Room

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›

Related Topics

gun c# fps scripting problem shooting raycast gunfire ammo animation bullet gun position bullets reload 3d gun movement reloading damage guns 2d game shoot aiming unity 2d error message error unity 5


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