ExtContentBrowserBlueprintLibrary.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2017-2021 marynate. All Rights Reserved.
  2. #pragma once
  3. #include "ExtContentBrowser.h"
  4. #include "ExtContentBrowserTypes.h"
  5. #include "Kismet/BlueprintFunctionLibrary.h"
  6. #include "ExtContentBrowserBlueprintLibrary.generated.h"
  7. UCLASS(meta = (ScriptName = "UAssetBrowserLibrary"))
  8. class EXTCONTENTBROWSER_API UExtContentBrowserBlueprintLibrary : public UBlueprintFunctionLibrary
  9. {
  10. GENERATED_BODY()
  11. public:
  12. UFUNCTION(BlueprintCallable, meta = (Category = "UAssetBrowser|Import", AutoCreateRefTerm = "AssetFilePaths, ImportSetting"))
  13. static void ImportUAssets(const TArray<FString>& AssetFilePaths, const FUAssetImportSetting& ImportSetting, bool bOneByOne = false);
  14. UFUNCTION(BlueprintCallable, meta = (Category = "UAssetBrowser|Import", AutoCreateRefTerm = "ImportSetting"))
  15. static void ImportUAsset(const FString& AssetFilePath, const FUAssetImportSetting& ImportSetting);
  16. UFUNCTION(BlueprintCallable, meta = (Category = "UAssetBrowser|Import", AutoCreateRefTerm = "ImportSetting"))
  17. static void ImportFromFileList(const FString& FilePath, const FUAssetImportSetting& ImportSetting, bool bOneByOne = false);
  18. UFUNCTION(BlueprintPure, meta = (Category = "UAssetBrowser|Get"))
  19. static void GetGlobalImportSetting(FUAssetImportSetting& ImportSetting);
  20. UFUNCTION(BlueprintPure, meta = (Category = "UAssetBrowser|Get"))
  21. static void GetSelectedUAssetFilePaths(TArray<FString>& AssetFilePaths);
  22. #if ECB_TODO
  23. //UFUNCTION(BlueprintPure, meta = (Category = "UAssetBrowser|Get"))
  24. static void GetUAssetFilePathsInFolder(FName FolderPath, TArray<FString>& AssetFilePaths, bool bRecursive = false);
  25. #endif
  26. };