Navigation
API > API/Editor > API/Editor/ContentBrowser
References
| Module | ContentBrowser |
| Header | /Engine/Source/Editor/ContentBrowser/Public/IContentBrowserSingleton.h |
| Include | #include "IContentBrowserSingleton.h" |
Syntax
class IContentBrowserSingleton
Remarks
Content browser module singleton
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanChangeAssetPublicState
(
FStringView AssetPath |
Returns true if the public/private state of the specified asset can be changed | |
| void | CaptureThumbnailFromViewport
(
FViewport* InViewport, |
Capture active viewport to thumbnail and assigns that thumbnail to incoming assets | |
| TSharedRef< SWidget > | CreateAssetPicker
(
const FAssetPickerConfig& AssetPickerConfig |
Generates an asset picker widget locked to the specified FARFilter. | |
| TSharedRef< SWidget > | CreateCollectionPicker
(
const FCollectionPickerConfig& CollectionPickerConfig |
Generates a collection picker widget. | |
| TSharedRef< SWidget > | CreateContentBrowser
(
const FName InstanceName, |
Generates a content browser. | |
| TSharedRef< SWidget > | CreateContentBrowserDrawer
(
const FContentBrowserConfig& ContentBrowserConfig, |
Generates a content browser for use in a drawer. | |
| TArray< FAssetData > | CreateModalOpenAssetDialog
(
const FOpenAssetDialogConfig& InConfig |
Opens the Open Asset dialog in a modal window | |
| FString | CreateModalSaveAssetDialog
(
const FSaveAssetDialogConfig& SaveAssetConfig |
Opens the Save Asset dialog in a modal window | |
| void | CreateNewAsset
(
const FString& DefaultAssetName, |
Sets up an inline-name for the creation of a new asset in the primary content browser using the specified path and the specified class and/or factory | |
| void | CreateOpenAssetDialog
(
const FOpenAssetDialogConfig& OpenAssetConfig, |
Opens the Open Asset dialog in a non-modal window | |
| TSharedRef< SWidget > | CreatePathPicker
(
const FPathPickerConfig& PathPickerConfig |
Generates a path picker widget. | |
| void | CreateSaveAssetDialog
(
const FSaveAssetDialogConfig& SaveAssetConfig, |
Opens the Save Asset dialog in a non-modal window | |
| void | ExecuteAddFolder
(
TSharedPtr< SWidget > PathPickerWidget |
Add a folder to the path picker widget under the current selected path. | |
| void | ExecuteRename
(
TSharedPtr< SWidget > PickerWidget |
Rename current first selected content item on the passed in widget. | |
| void | FocusContentBrowserSearchField
(
TSharedPtr< SWidget > ContentBrowserWidget |
Focuses the search field of a content browser widget | |
| void | FocusPrimaryContentBrowser
(
bool bFocusSearch |
Brings the primary content browser to the front or opens one if it does not exist. | |
| void | ForceShowPluginContent
(
bool bEnginePlugin |
Forces the content browser to show plugin content if it's not already showing. | |
| IContentBrowserSingleton & | Get () |
||
| TSharedPtr< SWidget > | GetAssetPickerSearchBox
(
const TSharedRef< SWidget >& AssetPickerWidget |
Focus the search box of the given asset picker widget. | |
| FContentBrowserItemPath | Gets the current path if one exists, otherwise returns empty string. | ||
| FContentBrowserItemPath | GetInitialPathToSaveAsset
(
const FContentBrowserItemPath& InPath |
Returns InPath if can be written to, otherwise picks a default path that can be written to | |
| void | GetSelectedAssets
(
TArray< FAssetData >& SelectedAssets |
Generates a list of assets that are selected in the primary content browser | |
| void | GetSelectedFolders
(
TArray< FString >& SelectedFolders |
Generates a list of folders that are selected in the primary content browser | |
| void | GetSelectedPathViewFolders
(
TArray< FString >& SelectedFolders |
Returns the folders that are selected in the path view | |
| const TSharedPtr< FPathPermissionList > & | Returns the Private Content Permission List | ||
| bool | Returns true if there is at least one browser open that is eligible to be a primary content browser | ||
| bool | IsFolderShowPrivateContentToggleable
(
const FStringView VirtualFolderPath |
Returns true if FolderPath's private content edit mode is allowed to be toggled | |
| bool | IsShowingPrivateContent
(
const FStringView VirtualFolderPath |
Returns true if FolderPath is a private content edit folder | |
| void | RefreshPathView
(
TSharedPtr< SWidget > PathPickerWidget |
Force refresh on the path picker widget. | |
| void | RegisterCanChangeAssetPublicStateDelegate
(
FCanChangeAssetPublicStateDelegate InCanChangeAssetPublicStateDelegate |
Registers the delegate called to determine whether the public/private state of the specified asset can be changed | |
| void | RegisterIsFolderShowPrivateContentToggleableDelegate
(
FIsFolderShowPrivateContentToggleableDelegate InIsFolderShowPrivateContentToggleableDelegate |
Registers the delegate for custom handling of if a Folder allows private content edits | |
| FDelegateHandle | RegisterOnFavoritesChangedHandler
(
FSimpleDelegate OnFavoritesChanged |
Register a delegate to be called when the Favorites changes. | |
| void | SaveContentBrowserSettings
(
TSharedPtr< SWidget > ContentBrowserWidget |
Saves the settings for a particular content browser instance | |
| void | Declares the Private Content Permission List dirty | ||
| void | SetSelectedPaths
(
const TArray< FString >& FolderPaths, |
Sets the content browser to display the selected paths | |
| void | SyncBrowserTo
(
const FContentBrowserSelection& ItemSelection, |
Selects the supplied assets in the primary content browser. | |
| void | SyncBrowserToAssets
(
const TArray< struct FAssetData >& AssetDataList, |
Selects the supplied assets in the primary content browser. | |
| void | SyncBrowserToAssets
(
const TArray< UObject* >& AssetList, |
Selects the supplied assets in the primary content browser. | |
| void | SyncBrowserToFolders
(
const TArray< FString >& FolderList, |
Selects the supplied assets in the primary content browser. | |
| void | SyncBrowserToItems
(
const TArray< FContentBrowserItem >& ItemsToSync, |
Selects the supplied items in the primary content browser. | |
| void | Unregisters the delegate called to determine whether the public/private state of the specified asset can be changed | ||
| void | Unregisters the delegate for custom handling of if a Folder allows private content edits | ||
| void | Unregister a previously-registered handler for when Favorites changes. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FString | GetCurrentPath
(
const EContentBrowserPathType PathType |
This function is deprecated. Use GetCurrentPath without argument instead. |