I have an Actor consisted of several ‘UStaticMeshComponent’ class components and some of those components have their collision turned on (‘BlockAllDynamic’ preset or similar custom setup).
All components are attached to the Root component which is also of ‘UStaticMeshComponent’ class.
- When I start the game from the editor, child components do not collide with the Root.
- If I load the game from the save and the level which was saved is identical with the one which is loaded in the editor (same assets used), child components also do not collide with the Root.
- But if I load the game from the save and the level which is loaded hasn’t been opened inside the editor since the editor was started (empty level loaded instead), child components do collide with the Root.
Do you have any ideas, why is this happening? And what is the proper default behaviour: are those ‘UStaticMeshComponent’ class components supposed to collide with their parent or not?
P.S. Functions which I use for attaching child mesh components to the root are:
- ‘USceneComponent::SetupAttachment()’
- ‘USceneComponent::AttachToComponent()’