void UAnimSequenceBase::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); if(Notifies.Num() > 0) { FString NotifyList; // add notifies to for(auto Iter=Notifies.CreateConstIterator(); Iter; ++Iter) { // only add if not BP anim notify since they're handled separate if(Iter->IsBlueprintNotify() == false) { NotifyList += FString::Printf(TEXT("%s%s"), *Iter->NotifyName.ToString(), *USkeleton::AnimNotifyTagDelimiter); } } if(NotifyList.Len() > 0) { OutTags.Add(FAssetRegistryTag(USkeleton::AnimNotifyTag, NotifyList, FAssetRegistryTag::TT_Hidden)); } } // Add curve IDs to a tag list, or a blank tag if we have no curves. // The blank list is necessary when we attempt to delete a curve so // an old asset can be detected from its asset data so we load as few // as possible. FString CurveIdList; for(const FFloatCurve& Curve : RawCurveData.FloatCurves) { CurveIdList += FString::Printf(TEXT("%u%s"), Curve.CurveUid, *USkeleton::CurveTagDelimiter); } OutTags.Add(FAssetRegistryTag(USkeleton::CurveTag, CurveIdList, FAssetRegistryTag::TT_Hidden)); }
void UBlueprint::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { UClass* GenClass = Cast<UClass>(GeneratedClass); if ( GenClass && GenClass->GetDefaultObject() ) { GenClass->GetDefaultObject()->GetAssetRegistryTags(OutTags); } Super::GetAssetRegistryTags(OutTags); FString ParentClassPackageName; if ( ParentClass ) { ParentClassPackageName = ParentClass->GetOutermost()->GetName(); } else { ParentClassPackageName = TEXT("None"); } //NumReplicatedProperties int32 NumReplicatedProperties = 0; UBlueprintGeneratedClass* BlueprintClass = Cast<UBlueprintGeneratedClass>(GenClass); if (BlueprintClass) { NumReplicatedProperties = BlueprintClass->NumReplicatedProperties; } OutTags.Add(FAssetRegistryTag("NumReplicatedProperties", FString::FromInt(NumReplicatedProperties), FAssetRegistryTag::TT_Numerical)); OutTags.Add(FAssetRegistryTag("ParentClassPackage", ParentClassPackageName, FAssetRegistryTag::TT_Hidden)); OutTags.Add(FAssetRegistryTag(GET_MEMBER_NAME_CHECKED(UBlueprint, BlueprintDescription), BlueprintDescription, FAssetRegistryTag::TT_Hidden)); uint32 ClassFlagsTagged = 0; if (BlueprintClass) { ClassFlagsTagged = BlueprintClass->GetClassFlags(); } else { ClassFlagsTagged = GetClass()->GetClassFlags(); } OutTags.Add( FAssetRegistryTag("ClassFlags", FString::FromInt(ClassFlagsTagged), FAssetRegistryTag::TT_Hidden) ); FKismetEditorUtilities::GetAssetRegistryTagsForBlueprint(this, OutTags); OutTags.Add( FAssetRegistryTag( "IsDataOnly", FBlueprintEditorUtils::IsDataOnlyBlueprint(this) ? TEXT("True") : TEXT("False"), FAssetRegistryTag::TT_Alphabetical ) ); }
void USoundWave::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); #if WITH_EDITORONLY_DATA if (AssetImportData) { OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); } #endif // GetCompressedDataSize could technically modify this->CompressedFormatData therefore it is not const, however this information // is very useful in the asset registry so we will allow GetCompressedDataSize to be modified if the formats do not exist USoundWave* MutableThis = const_cast<USoundWave*>(this); const FString OggSize = FString::Printf(TEXT("%.2f"), MutableThis->GetCompressedDataSize("OGG") / 1024.0f ); OutTags.Add( FAssetRegistryTag("OggSize", OggSize, UObject::FAssetRegistryTag::TT_Numerical) ); }
void UTextureCube::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { #if WITH_EDITOR int32 SizeX = Source.GetSizeX(); int32 SizeY = Source.GetSizeY(); #else int32 SizeX = 0; int32 SizeY = 0; #endif const FString Dimensions = FString::Printf(TEXT("%dx%d"), SizeX, SizeY); OutTags.Add( FAssetRegistryTag("Dimensions", Dimensions, FAssetRegistryTag::TT_Dimensional) ); OutTags.Add( FAssetRegistryTag("Format", GPixelFormats[GetPixelFormat()].Name, FAssetRegistryTag::TT_Alphabetical) ); Super::GetAssetRegistryTags(OutTags); }
void USpineSkeletonDataAsset::GetAssetRegistryTags (TArray<FAssetRegistryTag>& OutTags) const { if (importData) { OutTags.Add(FAssetRegistryTag(SourceFileTagName(), importData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); } Super::GetAssetRegistryTags(OutTags); }
void USkeleton::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); FString RigFullName = (RigConfig.Rig)? RigConfig.Rig->GetFullName() : TEXT(""); OutTags.Add(FAssetRegistryTag(USkeleton::RigTag, RigFullName, FAssetRegistryTag::TT_Hidden)); }
void UPaperSpriteAtlas::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); #if WITH_EDITORONLY_DATA OutTags.Add(FAssetRegistryTag(GET_MEMBER_NAME_CHECKED(UPaperSpriteAtlas, AtlasDescription), AtlasDescription, FAssetRegistryTag::TT_Hidden)); #endif }
void USpriterProject::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { if (AssetImportData) { OutTags.Add(FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden)); } Super::GetAssetRegistryTags(OutTags); }
void UFont::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { // Add all the font filenames for( const FTypefaceEntry& TypefaceEntry : CompositeFont.DefaultTypeface.Fonts ) { OutTags.Add( FAssetRegistryTag(SourceFileTagName(), TypefaceEntry.Font.FontFilename, FAssetRegistryTag::TT_Hidden) ); } for( const FCompositeSubFont& SubFont : CompositeFont.SubTypefaces ) { for( const FTypefaceEntry& TypefaceEntry : SubFont.Typeface.Fonts ) { OutTags.Add( FAssetRegistryTag(SourceFileTagName(), TypefaceEntry.Font.FontFilename, FAssetRegistryTag::TT_Hidden) ); } } Super::GetAssetRegistryTags(OutTags); }
void UCurveBase::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { if (AssetImportData) { OutTags.Add(FAssetRegistryTag(SourceFileTagName(), AssetImportData->ToJson(), FAssetRegistryTag::TT_Hidden)); } Super::GetAssetRegistryTags(OutTags); }
void UPaperTileMap::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { if (AssetImportData) { OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->SourceFilePath, FAssetRegistryTag::TT_Hidden) ); } Super::GetAssetRegistryTags(OutTags); }
void UCreatureAnimationAsset::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { if (!creature_filename.IsEmpty()) { OutTags.Add(FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden)); } Super::GetAssetRegistryTags(OutTags); }
void USoundWave::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); // GetCompressedDataSize could technically modify this->CompressedFormatData therefore it is not const, however this information // is very useful in the asset registry so we will allow GetCompressedDataSize to be modified if the formats do not exist USoundWave* MutableThis = const_cast<USoundWave*>(this); const FString OggSize = FString::Printf(TEXT("%.2f"), MutableThis->GetCompressedDataSize("OGG") / 1024.0f ); OutTags.Add( FAssetRegistryTag("OggSize", OggSize, UObject::FAssetRegistryTag::TT_Numerical) ); }
void USoundWave::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); #if WITH_EDITORONLY_DATA if (AssetImportData) { OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); } #endif }
void UBlueprintCore::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); FString GeneratedClassVal; if ( GeneratedClass != NULL ) { GeneratedClassVal = FString::Printf(TEXT("%s'%s'"), *GeneratedClass->GetClass()->GetName(), *GeneratedClass->GetPathName()); } else { GeneratedClassVal = TEXT("None"); } OutTags.Add( FAssetRegistryTag("GeneratedClass", GeneratedClassVal, FAssetRegistryTag::TT_Hidden) ); }
void UUserDefinedStruct::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { Super::GetAssetRegistryTags(OutTags); OutTags.Add(FAssetRegistryTag(TEXT("Tooltip"), FStructureEditorUtils::GetTooltip(this), FAssetRegistryTag::TT_Hidden)); }
void UCurveBase::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const { OutTags.Add( FAssetRegistryTag(SourceFileTagName(), ImportPath, FAssetRegistryTag::TT_Hidden) ); Super::GetAssetRegistryTags(OutTags); }