I have a custom skeletal mesh component that creates a number of child static mesh components on creation, this works fine but when I try to modify the visibility of the created meshes at runtime using ToggleVisibility() I don’t see any change, writing out to the log confirms that the bVisible property has changed as expected but the rendered view does not reflect the change to visibility.
I have set the component render state as dirty using MarkRenderStateDirty() but that didn’t make a difference.
I also tested modifying the relative transform of the child mesh components position in my custom components tick and it works fine in the editor I can see the meshes position updating but as soon as I try simulate or play in editor the meshes return to their initial position and won’t update.
Please help.