The question was vague so it took me a while to understand it, but you don’t want to do a cast for each one of them, it’s quite simple actually make the main box actor and create two children from it, you add all the variables you want into the main actor(I suggest to add an enum to see the difference in the boxes as well you can do a switch on it), then in the children change their color(and enum from default settings in BP) and that’s it. Good luck.
I have 3 different actors actors ex red box, green box, yellow box.
I want to check when a box actor no matter the color overlaps another actor and when that happens i want to store the color in the actor overlapped.
Is there a way to do this without checking for each type?