Agrarsense
EditorUtilities.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "UObject/NoExportTypes.h"
10#if WITH_EDITOR
11#include "AssetRegistry/AssetData.h"
12#endif
13
14#include "EditorUtilities.generated.h"
15
16class UBoxComponent;
17
18UCLASS()
19class AGRARSENSE_API UEditorUtilities : public UObject
20{
21 GENERATED_BODY()
22
23public:
24
28 UFUNCTION(BlueprintCallable, Category = "Editor Utilities")
29 static void ExportThumbnailTextureFromSelectedAssets();
30
31
32 UFUNCTION(BlueprintCallable, Category = "Editor Utilities")
33 static void DestroyOverlappingActorsWithMeshEditor(UBoxComponent* Area);
34
35private:
36
37 static void CreateThumbnailTextureFromAsset(const FAssetData& Asset);
38
39};