We have some functionality to precompute visibility for our maps which we can trigger from the editor or from a commandlet. We iterate through all the static mesh components, generate a unique id and assign it to the Component’s VisibilityId
Component->VisibilityId = VisibilityId;
Component->MarkRenderStateDirty();
Component->MarkPackageDirty();
And this works in editor, however for components that live in level instances, the RF_Transient flag is set on the package and the change is never ‘saved’.
What is the correct protocol/API to modify these values in Level Instances in a commandlet or even in editor for that matter since the results are lost there too upon exit?