Vector4 values

        if(touchS.CubesSetNumber==k)
        {
            renderer.material.color =  new Vector4(0.5F, 1, ColorChangeTwo, ColorChange);

            AddHp += 25;
            k = touchS.CubesSetNumber + 1;
            ColorChange++;
            ColorChangeTwo++;
            ColorChangeThree++;
        }

it changes the color but when it comes to some point the color keeps being the same and doesn’t change…
is that related to the values of Vector4?

You should use Color, not Vector4. Color values are 0.0 through 1.0. Anything higher than 1.0 is the same as 1.0, so increasing beyond 1.0 won’t have any effect.

–Eric

1 Like

So by how many should i increase the variables every time?

I have no idea; that’s up to you. But less than 1.0.

–Eric

1 Like