Code/Framework/AzToolsFramework/AzToolsFramework/Entity/SliceEditorEntityOwnershipService.cpp
void SliceEditorEntityOwnershipService::OnAssetReloaded(AZ::Data::Asset<AZ::Data::AssetData> asset)
    {
        AZ_PROFILE_FUNCTION(AzToolsFramework);

        EntityIdList selectedEntities;
        ToolsApplicationRequests::Bus::BroadcastResult(selectedEntities, &ToolsApplicationRequests::GetSelectedEntities);

        SliceEntityOwnershipService::OnAssetReloaded(asset);

        // Ensure selection set is preserved after applying the new level slice.
        ToolsApplicationRequests::Bus::Broadcast(&ToolsApplicationRequests::SetSelectedEntities, selectedEntities);
    }
//=========================================================================
// OnAssetReloaded - Root slice (or its dependents) has been reloaded.
//=========================================================================
Root slice (or its dependents) has been reloaded.
Root slice ( or its dependents ) has been reloaded .
void SliceEditorEntityOwnershipService::OnAssetReloaded(AZ::Data::Asset<AZ::Data::AssetData> asset)
    {
        AZ_PROFILE_FUNCTION(AzToolsFramework);
        EntityIdList selectedEntities;
        ToolsApplicationRequests::Bus::BroadcastResult(selectedEntities, &ToolsApplicationRequests::GetSelectedEntities);
        SliceEntityOwnershipService::OnAssetReloaded(asset);
        ToolsApplicationRequests::Bus::Broadcast(&ToolsApplicationRequests::SetSelectedEntities, selectedEntities);
    }
void SliceEditorEntityOwnershipService :: OnAssetReloaded ( AZ :: Data :: Asset < AZ :: Data :: AssetData > asset ) { AZ_PROFILE_FUNCTION ( AzToolsFramework ) ; EntityIdList selectedEntities ; ToolsApplicationRequests :: Bus :: BroadcastResult ( selectedEntities , & ToolsApplicationRequests :: GetSelectedEntities ) ; SliceEntityOwnershipService :: OnAssetReloaded ( asset ) ; ToolsApplicationRequests :: Bus :: Broadcast ( & ToolsApplicationRequests :: SetSelectedEntities , selectedEntities ) ; }
OnAssetReloaded - Root slice (or its dependents) has been reloaded.
OnAssetReloaded - Root slice ( or its dependents ) has been reloaded .
// Ensure selection set is preserved after applying the new level slice.