LifePlay-Revival/Plugins/StreetMap/Source/StreetMapRuntime/StreetMap.cpp

30 lines
673 B
C++
Raw Normal View History

2017-12-09 16:33:11 +00:00
// Copyright 2017 Mike Fricker. All Rights Reserved.
#include "StreetMapRuntime.h"
#include "StreetMap.h"
#include "EditorFramework/AssetImportData.h"
UStreetMap::UStreetMap()
{
#if WITH_EDITORONLY_DATA
if( !HasAnyFlags( RF_ClassDefaultObject ) )
{
AssetImportData = NewObject<UAssetImportData>( this, TEXT( "AssetImportData" ) );
}
#endif
}
void UStreetMap::GetAssetRegistryTags( TArray<FAssetRegistryTag>& OutTags ) const
{
#if WITH_EDITORONLY_DATA
if( AssetImportData )
{
OutTags.Add( FAssetRegistryTag( SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden ) );
}
#endif
Super::GetAssetRegistryTags( OutTags );
}