Loop Components and get Collision Profile Name

Hey Community!

I want to get all Child Components of a Parent (here: Default Scene Root) by using Loop. For Each Child I want to get/set Collision Profile Name automatically. My BPs you can see in Picture “upload” below.
What works:

  • I can get all Child Components.
  • I can set/get Collision Profile Name for every single Component one by one.

What not works:

  • I can’t connect the Loop-Output for every Array Element with the set/get Collision Profile Name. Loop-Output (Array Element) has an different Class than the Child Component, when I take it by hand.

Someone knows a solution? E.g. convert Scene Comp. to Primitive Comp. or keep in Loop-Output the Static Mesh Comp.-class?

I dont think a scene component CAN have Collison. It can have child components that have collision though, but you will have to access those instead. Maybe access scene comp first and use that ref to get its collidable child component.

Yes, you need to explicitly cast to PrimitiveComponent, because scene components don’t have collisions

Great! Thanks, works well!