IContentBrowserSingleton

Content browser module singleton

Unreal Engine C++ API Reference > 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
  ~IContentBrowserSingleton () 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, TArray< FAssetData >& SelectedAsse... ) Capture active viewport to thumbnail and assigns that thumbnail to incoming assets
TSharedRef< ... CreateAssetPicker ( const FAssetPickerConfig& AssetPic... ) Generates an asset picker widget locked to the specified FARFilter.
TSharedRef< ... CreateCollectionPicker ( const FCollectionPickerConfig& Col... ) Generates a collection picker widget.
TSharedRef< ... CreateContentBrowser ( const FName InstanceName, TSharedPtr< SDockTab > ContainingTa..., const FContentBrowserConfig* C... ) Generates a content browser.
TSharedRef< ... CreateContentBrowserDrawer ( const FContentBrowserConfig& Conte..., TFunction< TSharedPtr< SDockTab >()... ) Generates a content browser for use in a drawer.
TArray< FAss... CreateModalOpenAssetDialog ( const FOpenAssetDialogConfig& InCo... ) Opens the Open Asset dialog in a modal window
FString CreateModalSaveAssetDialog ( const FSaveAssetDialogConfig& Save... ) Opens the Save Asset dialog in a modal window
void CreateNewAsset ( const FString& DefaultAssetName, const FString& PackagePath, UClass* AssetClass, UFactory* Factory ) 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& Open..., const FOnAssetsChosenForOpen& OnAs..., const FOnAssetDialogCancelled& OnA... ) Opens the Open Asset dialog in a non-modal window
TSharedRef< ... CreatePathPicker ( const FPathPickerConfig& PathPicke... ) Generates a path picker widget.
void CreateSaveAssetDialog ( const FSaveAssetDialogConfig& Save..., const FOnObjectPathChosenForSave& ..., const FOnAssetDialogCancelled& OnA... ) Opens the Save Asset dialog in a non-modal window
void ExecuteAddFolder ( TSharedPtr< SWidget > PathPickerWid... ) 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 > ContentBrowse... ) 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.
IContentBrow... Get ()  
TSharedPtr< ... GetAssetPickerSearchBox ( const TSharedRef< SWidget >& Asset... ) Focus the search box of the given asset picker widget.
FContentBrow... GetCurrentPath () Gets the current path if one exists, otherwise returns empty string.
FContentBrow... GetInitialPathToSaveAsset ( const FContentBrowserItemPath& InP... ) Returns InPath if can be written to, otherwise picks a default path that can be written to
void GetSelectedAssets ( TArray< FAssetData >& SelectedAsse... ) 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 TShare... GetShowPrivateContentPermissionList () Returns the Private Content Permission List
bool HasPrimaryContentBrowser () 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 > PathPickerWid... ) Force refresh on the path picker widget.
void RegisterCanChangeAssetPublicStateDelegate ( FCanChangeAssetPublicStateDelegate ... ) Registers the delegate called to determine whether the public/private state of the specified asset can be changed
void RegisterIsFolderShowPrivateContentToggleableDelegate ( FIsFolderShowPrivateContentToggleab... ) Registers the delegate for custom handling of if a Folder allows private content edits
FDelegateHan... RegisterOnFavoritesChangedHandler ( FSimpleDelegate OnFavoritesChanged ) Register a delegate to be called when the Favorites changes.
void SaveContentBrowserSettings ( TSharedPtr< SWidget > ContentBrowse... ) Saves the settings for a particular content browser instance
void SetPrivateContentPermissionListDirty () Declares the Private Content Permission List dirty
void SetSelectedPaths ( const TArray< FString >& FolderPat..., bool bNeedsRefresh, bool bPathsAreVirtual ) Sets the content browser to display the selected paths
void SyncBrowserTo ( const FContentBrowserSelection& It..., bool bAllowLockedBrowsers, bool bFocusContentBrowser, const FName& InstanceName, bool bNewSpawnBrowser ) Selects the supplied assets in the primary content browser.
void SyncBrowserToAssets ( const TArray< struct FAssetData >&..., bool bAllowLockedBrowsers, bool bFocusContentBrowser, const FName& InstanceName, bool bNewSpawnBrowser ) Selects the supplied assets in the primary content browser.
void SyncBrowserToAssets ( const TArray< UObject* >& Ass..., bool bAllowLockedBrowsers, bool bFocusContentBrowser, const FName& InstanceName, bool bNewSpawnBrowser ) Selects the supplied assets in the primary content browser.
void SyncBrowserToFolders ( const TArray< FString >& FolderLis..., bool bAllowLockedBrowsers, bool bFocusContentBrowser, const FName& InstanceName, bool bNewSpawnBrowser ) Selects the supplied assets in the primary content browser.
void SyncBrowserToItems ( const TArray< FContentBrowserItem >..., bool bAllowLockedBrowsers, bool bFocusContentBrowser, const FName& InstanceName, bool bNewSpawnBrowser ) Selects the supplied items in the primary content browser.
void UnregisterCanChangeAssetPublicStateDelegate () Unregisters the delegate called to determine whether the public/private state of the specified asset can be changed
void UnregisterIsFolderShowPrivateContentToggleableDelegate () Unregisters the delegate for custom handling of if a Folder allows private content edits
void UnregisterOnFavoritesChangedDelegate ( FDelegateHandle Handle ) Unregister a previously-registered handler for when Favorites changes.

Deprecated Functions

Type Name Description
FString GetCurrentPath ( const EContentBrowserPathType PathT... ) This function is deprecated. Use GetCurrentPath without argument instead.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library