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
0
Question by ChrisHorrigan · May 07, 2015 at 03:45 AM · muzzleflash

Halo still not accessible via script? Simple muzzle flash alternatives please?

I found that I was getting an error from GetComponent(); and I looked around and it seems like you cannot access the Halo component via script.

My intention was to use a Halo as a muzzle flash on a gun, having it turn on for a fraction of a second when a shot is fired and then be off again.

Can somebody point me in the direction of a different way to do muzzle flashes then? From what I've read, it sounds like some kind of particle system is my best bet, but there are multiple categories under "Legacy particles." Can anyone tell me which one I should look into, if that is a good way to go about this?

I have also seen talk of using a muzzle flash 2D texture or something but I would rather not take that approach. Nothing in my game is textured, I am using a very simple solid color + toon shader style and for the muzzle flash I would like something pretty similar to the Halo effect. This is a top down shooter if that helps your mental image of what I'm trying to do.

I would appreciate any tips! I don't need to be taught how to use a certain particle system or anything, I would just like to be told which one to teach myself! Meanwhile, I will explore my options myself of course.

Comment
Add comment · Show 2
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 AlwaysSunny · May 07, 2015 at 03:42 AM 1
Share

"Legacy" is jargon meaning a system is being retired or replaced. Shuriken is the newer, superior particle system option. It's what gets created when you choose to create a Particle System through the Editor drop down menus, and is the component named and referred to as a Particle System throughout Unity. Its "type" or "class name" is ParticleSystem.

It is difficult to recommend a strategy for creating a muzzle flash effect without fully understanding your desired aesthetic.

http://docs.unity3d.com/$$anonymous$$anual/class-Halo.html

avatar image ChrisHorrigan · May 08, 2015 at 02:08 AM 0
Share

@AlwaysSunny Thanks for the info! I'll look into it. I'm also currently considering using a light on the muzzle position that turns on when the gun is fired. I noticed that I can check a box "show halo" or something like that so it will illu$$anonymous$$ate the area and have the desired halo effect :)

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

MachineGun script applied damage to the object that is not hit. 1 Answer

Why is this returning false but somewhat true? 1 Answer

Muzzle flash stop when reloading? 3 Answers

How to add Muzzle Flash to Weapon 1 Answer

Gun sparks when firing gun. 4 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