How to save a uobject and show it in ue4 content browser By C++?

FString FileName = AssetName + TEXT("_") + TrimmedPropertyName;
FString pathPackage = OuterPackage->GetName()+ TEXT("/") + FileName;
UPackage* MaterialPackage = CreatePackage(*pathPackage);
check(MaterialPackage);
MaterialPackage->FullyLoad();
MaterialPackage->Modify();

			UTexture* Texture = FMaterialUtilities::CreateTexture(MaterialPackage,/* TEXT("T_") +*/ FileName, DataSize, ColorData, CompressionSettings, TEXTUREGROUP_HierarchicalLOD, RF_Public | RF_Standalone, bSRGBEnabled);

I create a UTexture In C++.But I Run this code, it not show in the content browser.I must to click the “Save All” , then it will show in the content browser.

Now I Get it!

Texture->AddToRoot();
Texture->UpdateResource();
MaterialPackage->MarkPackageDirty();
FAssetRegistryModule::AssetCreated(Texture);