I have a list of objects (diferent types) and I want to loop through it looking for variables called color of type Color to modify them.
Is there a way to do it without reflection? If not, what's the most efficient way to do with reflection? The list will have about 200+- objects and it should update every frame. Also, I cannot create a Super class like ColoredObjects or something because this classes are built-in and I cannot modify them.
Aucun commentaire:
Enregistrer un commentaire