- Home /
 
If statement checking material tint color
Attempting to do the following:
 var swipeMaterial = Material
 if(swipeMaterial.TintColor == red)
     {
         colorBlue = false;
         colorRed = true;
     }
     
     else if(swipeMaterial.TintColor == blue)
     {
         colorBlue = true;
         colorRed = false;
     }
 
               I no that swipeMaterial.TintColor will not work, but the swipeMaterial.Color does not work either.
The shader I am using is a Particles/Additive-Multiply.
               Comment
              
 
               
              Try it with GetColor with the explicit color property name.
Your answer