Get and Set Float/Int by name - C++ correction?

FLinearColor would be a UStructProperty. You will have to manually parse all of the structs internal parameters and set them individually. This is really not something you’re meant to do for gameplay code.

If you need to run similar behaviour on objects of different, unrelated classes - use an interface instead.