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 123guitarman · Oct 15, 2012 at 08:45 PM · animatorparticlescolorchangelegacy

changing the color of particles using the legacy particle animator?

im following a tutorial made by the tornado twins on vtc.com. they are showing how to animate particles and change the color and everything. they are using an older version of unity so the particle animator didnt look the same for me as it did in the tutorial. i emailed them and they told me how to find the legacy particle animator, which looks like the one they used in the tutorial. when im using the legacy particle animator, it gives you 5 different colors you can choose to use within a single particle system. by default, all 5 colors are white, but on the screen they are shown as pink. when i change any or all of the 5 colors, they are still pink on the screen. i play my game and they are still pink. how do i get it to actually change the color of my particles?

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 Dismortus · Sep 29, 2013 at 06:16 PM 1
Share

Pretty much what both DaveA and Clunk47 said.

2 Replies

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

Answer by clunk47 · Sep 29, 2013 at 03:00 AM

You need to have a ParticleAnimator attached, as well as assign a material to the ParticleRenderer Component in the inspector. When you go to choose your material, type in default and you should see a Default Particle material. Here is a simple example if you want to change the colors at runtime:

 using System;
 using UnityEngine;
 
 public class Example : MonoBehaviour
 {
     Color[] colors;
     
     void Awake()
     {
         colors = new Color[5]{Color.red, Color.green, Color.blue, Color.cyan, Color.white};
         gameObject.GetComponent<ParticleAnimator>().colorAnimation = colors;
     }
 }
 
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
avatar image
1

Answer by DaveA · Oct 16, 2012 at 12:47 AM

you probably need to assign a material to the particle renderer. Use a particle shader on that material too.

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

12 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

Related Questions

How to change color of Particles/additive material ? 1 Answer

Change material color at runtime!! 5 Answers

On Touch change color 2 Answers

shader mobile / particles / additive with black & white texture turns out red 1 Answer

Legacy Animations and Unity 5 - What's The Deal? 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