Trying to destroy something i've added to a static mesh...

I have a bunch of Actors attached to a static mesh and I am trying to remove one (or more) of them based on certain criteria

I am caching these in an array thusly:

I am then iterating through this list and based on certain other factors trying to get rid of them - not just from the list but from the actual static mesh itself - However a simple “destroy” on the actor does not get rid of it from the staticmesh - does anyone know how to get rid of them?

I could set a status and check that I suppose…

you need to BP_Snapper_FullOnly2 → DestroyComponent after destroying actor. The ChildActor Component just manages the attachment of the actual actor.

1 Like

yeah but how do i match the component to the actor? i can’t seem to find anything to match it on…

There should be a function in the childactorcomponent to return a reference to the actor… use that to manage if possible. or, cache the childactorcomponent ref in the BP_Snapper by creating a variable (‘MyAttachedChildActorComponent’ of childactorcomponent type object) in BP_Snapper and setting it on creation/snap if you need to reference that direction.

Get Owning Actor is the node youre looking for