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 samirehman22 · Oct 22, 2018 at 07:19 AM · particlesystemshootingbulletfps controllerfps tutorial

please someone help. bullet impact effect is not showing up(smoke & sparks) but it's creating and destorying like in script

I followed YouTube tutorials for making fps shooter make muzzle flash with particle system in unity it worked but bullet impact effects not workingalt text

here is my script I made gameobject public and put my impact effect in that in scene view it is showing that when I hit bullet it creates that game object and also destroy it after 2 seconds like in script but that smoke and sparks are not appearing

https://www.youtube.com/watch?v=-1xzsyWiWMA video link bullet impact effect how it looks

https://www.youtube.com/watch?v=Sp-w6jVOGOA video link what it's not appering

capture.png (36.0 kB)
Comment
Add comment · Show 1
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 ifurkend · Oct 22, 2018 at 11:27 AM 0
Share

Is “$$anonymous$$uzzleFlash” already exists in your scene or part of the “impactEffetc” prefab?

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Jordash · Oct 22, 2018 at 08:46 AM

From your video it looks like the collision is occurring and the object is being created, so you don't have to worry about that at least.

You haven't shown your code for the game object that is created, so I'm not certain but you should make sure it is playing the particle effect as it is created.

This is outside what you have asked, but I find it is better to have a single global particle effect object that is re-positioned at each impact location then played. This prevents you from creating and destroying so many game objects.

Comment
Add comment · Show 5 · 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 samirehman22 · Oct 22, 2018 at 11:02 AM 0
Share

I did show code for the effect but here it is againalt text

that's the variable of the particle I am using

alt text

"d" is the code that should run this particle system I saw multiple YouTube tutorials everyone is doing like this brackeys etc

f.png (1.4 kB)
d.png (7.8 kB)
avatar image Jordash samirehman22 · Oct 22, 2018 at 11:39 AM 0
Share

Oh so impactEffect is just a game object with a gameobject with a particle effect and no other scripting?

Is the particle effect set to "play on awake"?

Another aside, it is easier for others to read your code if you put it in code blocks.

avatar image samirehman22 Jordash · Oct 22, 2018 at 11:44 AM 0
Share

not it is not set to play on awake should I?

Show more comments
Show more comments
avatar image
0

Answer by aviad59 · Oct 22, 2018 at 08:44 AM

You need to instantiate the object. You just created it and didnt use it.

Comment
Add comment · Show 1 · 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 samirehman22 · Oct 22, 2018 at 10:48 AM 0
Share

alt text

I did instantiate it. can you explain more what are you trying to say

capture.png (24.8 kB)

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

99 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Shooting particle system? 0 Answers

Very basic Instantiate Question 2 Answers

Char shots oneside only / kills enemy on specific place. 0 Answers

Enemy Damage problem 1 Answer

Issues with bullet not subtracting properly 1 Answer


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