I am wishing to change the alpha of a gameobjects material using LeanTween. At the moment this can be done via the LeanTween.alpha property and works.
However I have a lot of objects that share the same material that I would like to optimise by just changing the materials alpha and it would then apply to all objects using this material.
As it stands I have 3 sets of colored material (red, green, blue) and I store all gameobjects with those color tags into arrays (so redArray has 8 objects, blueArray had 6 and greenArray has 4).
The code then needs to loop through each array and change the material alpha of each gameObject. (So 8 calls in the case of red)
I would find it much easier to assign the Material to the script and then call LeanTween.alpha(Material, to, time). (Which should just be 1 call)
Is this something that could be added in the future?
Cheers