28 lines
745 B
C
28 lines
745 B
C
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
#include "AssetTypeActions_Base.h"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 任务资产类型动作
|
||
|
|
*/
|
||
|
|
class PROJECTFISHEDITOR_API FFishInfoAssetAction : public FAssetTypeActions_Base
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
FFishInfoAssetAction(EAssetTypeCategories::Type InAssetCategory)
|
||
|
|
: MyAssetCategory(InAssetCategory)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
virtual FText GetName() const override { return FText::FromString("FishInfo Asset"); }
|
||
|
|
virtual FColor GetTypeColor() const override { return FColor(255, 215, 0); } // 金色
|
||
|
|
virtual UClass* GetSupportedClass() const override;
|
||
|
|
virtual uint32 GetCategories() override;
|
||
|
|
virtual bool CanFilter() override { return true; }
|
||
|
|
|
||
|
|
private:
|
||
|
|
EAssetTypeCategories::Type MyAssetCategory;
|
||
|
|
};
|