how should I make every instance has different material value

I’m a complete beginner.
I’ve got a idea I want to try out,how to make Foliage instances have a simple interactive effect.
I made a new material(“FoliageInstanceRotationAxisAndAngle”,like InteractiveFoliageActor in UDK),Then I calculated each Foliage Instance axis and angle.But i found that FoliageInstanceRotationAxisAndAngle has the same value, looks like all the instance will only accept one shader parameters.

so how should I make every instance has different material value?