- Home /
Particles (Legacy) wont render
Hi guys, I am a Unity Noob.
So I was following a tutroial to learn somthing, when the tutorial particle system was outdated compared to unity 4 that uses Particles (Legacy). So I tried to figure it out with the new system. All went well until I made a script that changes colour of the particles.
The problem is that when I change the colours, the particles are no longer visible, Then I also discovered that if I change less then 4 colours (out of 5) the particles are still visibole.
Can you please tell me what I am doing wrong?
Thanks a lot
Java code used:
#pragma strict
public var myColors:Color[];
function Start () {
var particleAnimator : ParticleAnimator = GetComponent(ParticleAnimator);
var modifiedColors : Color[] = particleAnimator.colorAnimation;
modifiedColors = myColors;
particleAnimator.colorAnimation = modifiedColors;
}
Answer by fafase · Nov 15, 2013 at 06:51 PM
What is the colors you are using? Is the last value 0? Unity uses RGBA so that last value is alpha, if 0 the color is transparent.
Dude I owe you one :)
Thanks a lot. I had my Alphas all to 0, didnt know that.
Thanks again :)
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
candle flame without particle emitter 1 Answer
How do I make a raycast for a particle 1 Answer
Question on Max Particle Size 0 Answers