AActor::IsInAnyEditLevelInstance

If true, the actor belongs to a level instance which is currently in an edit mode: edit or property override edit