// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "Containers/UnrealString.h" #include "Math/Color.h" struct FContentBrowserItem; struct FContentBrowserItemPath; namespace UE::Editor::ContentBrowser::ExtensionUtils { // Get the custom color of the given folder (if any). Prefer using this over raw FName variants. CONTENTBROWSER_API TOptional GetFolderColor(const FContentBrowserItem& FolderItem); // Get the custom color of the given folder path (if any) CONTENTBROWSER_API TOptional GetFolderColor(const FContentBrowserItemPath& FolderPath); // Get the custom color of the given internal folder path (if any) CONTENTBROWSER_API TOptional GetFolderColor(const FName& FolderPath); // Set a custom color for the given folder path CONTENTBROWSER_API void SetFolderColor(const FName& FolderPath, const FLinearColor& FolderColor); // Returns if this folder has been marked as a favorite folder CONTENTBROWSER_API bool IsFolderFavorite(const FString& FolderPath); }