Is there a way to Change the colors of a union?

its so annoying when you can’t change colors of a union or it applies the same materials to all the parts.
Is there a way to fix this?

What about go properties and mark

bruh theres an option on that?? dang Im blind