Attach component to actor?

There all kinds of attach to nodes in blueprint (like all twice) but none of them is for attaching a component to a actor. How am I supposed to do it? I know I could get the root component of the actor and attach it to that but that would require a cast to just for that and I would need to know the root component for it. The thing is I have various different Blueprints I want the component attach to.

Btw, that all the “rule” choices are default relative is really odd to me, I always use World. Instead of all these attach nodes I think it would be great if there would only be one attach node and then that could automatically be component to actor, component to component etc. based on what you put in the inputs. Just in case feature requests is something that can be forwarded here.

Maybe you can be more specific what kind of assets are you trying to attach?

you may check out blueprint interfaces. every “object” which should be possible to attach an actor to can use the interface and implement its specific logic. Then you don’t need to cast - you simply use the interface. But like numsi550 wrote - we need more information what your goal and setup is to help.

I found a solution now. There is a Get Root Component node and that works with any Actor, so no cast to is required. With that I can then do attach component to component.