Files
UnrealEngineUWP/Engine/Plugins/Runtime/GeometryCache/Source/GeometryCacheEd/Private/AssetDefinition_GeometryCache.cpp
daniel coelho 4d97f09585 GeometryCache: Replace AssetActions usage with AssetDefinitions.
#jira UE-179527
#rb Anousack.Kitisa

[CL 33593518 by daniel coelho in ue5-main branch]
2024-05-11 05:49:30 -04:00

37 lines
861 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AssetDefinition_GeometryCache.h"
#include "EditorFramework/AssetImportData.h"
#include "GeometryCache.h"
#define LOCTEXT_NAMESPACE "AssetTypeActions"
FText UAssetDefinition_GeometryCache::GetAssetDisplayName() const
{
return LOCTEXT("AssetTypeActions_GeometryCache", "GeometryCache");
}
FLinearColor UAssetDefinition_GeometryCache::GetAssetColor() const
{
return FColor(0, 255, 255);
}
TSoftClassPtr<UObject> UAssetDefinition_GeometryCache::GetAssetClass() const
{
return UGeometryCache::StaticClass();
}
bool UAssetDefinition_GeometryCache::CanImport() const
{
return true;
}
TConstArrayView<FAssetCategoryPath> UAssetDefinition_GeometryCache::GetAssetCategories() const
{
static const auto Categories = {EAssetCategoryPaths::Animation};
return Categories;
}
#undef LOCTEXT_NAMESPACE