IContentBrowserSingleton

Content browser module singleton

Windows
MacOS
Linux

References

Module

ContentBrowser

Header

/Engine/Source/Editor/ContentBrowser/Public/IContentBrowserSingleton.h

Include

#include "IContentBrowserSingleton.h"

Syntax

class IContentBrowserSingleton

Remarks

Content browser module singleton

Destructors

Name Description

Public function Virtual

~IContentBrowserSingleton()

Virtual destructor

Functions

Name Description

Public function

void

 

CaptureThumbnailFromViewport

(
    FViewport* InViewport,
    TArray< FAssetData >& SelectedAsse...
)

Capture active viewport to thumbnail and assigns that thumbnail to incoming assets

Public function

TSharedRef< ...

 

CreateAssetPicker

(
    const FAssetPickerConfig& AssetPic...
)

Generates an asset picker widget locked to the specified FARFilter.

Public function

TSharedRef< ...

 

CreateCollectionPicker

(
    const FCollectionPickerConfig& Col...
)

Generates a collection picker widget.

Public function

TSharedRef< ...

 

CreateContentBrowser

(
    const FName InstanceName,
    TSharedPtr< SDockTab > ContainingTa...,
    const FContentBrowserConfig* C...
)

Generates a content browser.

Public function

TArray< FAss...

 

CreateModalOpenAssetDialog

(
    const FOpenAssetDialogConfig& InCo...
)

Opens the Open Asset dialog in a modal window

Public function

FString

 

CreateModalSaveAssetDialog

(
    const FSaveAssetDialogConfig& Save...
)

Opens the Save Asset dialog in a modal window

Public function

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

Public function

void

 

CreateOpenAssetDialog

(
    const FOpenAssetDialogConfig& Open...,
    const FOnAssetsChosenForOpen& OnAs...,
    const FOnAssetDialogCancelled& OnA...
)

Opens the Open Asset dialog in a non-modal window

Public function

TSharedRef< ...

 

CreatePathPicker

(
    const FPathPickerConfig& PathPicke...
)

Generates a path picker widget.

Public function

void

 

CreateSaveAssetDialog

(
    const FSaveAssetDialogConfig& Save...,
    const FOnObjectPathChosenForSave& ...,
    const FOnAssetDialogCancelled& OnA...
)

Opens the Save Asset dialog in a non-modal window

Public function

void

 

FocusPrimaryContentBrowser

(
    bool bFocusSearch
)

Brings the primary content browser to the front or opens one if it does not exist.

Public function

void

 

ForceShowPluginContent

(
    bool bEnginePlugin
)

Forces the content browser to show plugin content if it's not already showing.

Public function

FString

 

GetCurrentPath()

Gets the current path if one exists, otherwise returns empty string.

Public function

void

 

GetSelectedAssets

(
    TArray< FAssetData >& SelectedAsse...
)

Generates a list of assets that are selected in the primary content browser

Public function

void

 

GetSelectedFolders

(
    TArray< FString >& SelectedFolders
)

Generates a list of folders that are selected in the primary content browser

Public function

void

 

GetSelectedPathViewFolders

(
    TArray< FString >& SelectedFolders
)

Returns the folders that are selected in the path view

Public function Const

bool

 

HasPrimaryContentBrowser()

Returns true if there is at least one browser open that is eligible to be a primary content browser

Public function

void

 

SetSelectedPaths

(
    const TArray< FString >& FolderPat...,
    bool bNeedsRefresh
)

Sets the content browser to display the selected paths

Public function

void

 

SyncBrowserTo

(
    const FContentBrowserSelection& It...,
    bool bAllowLockedBrowsers,
    bool bFocusContentBrowser,
    const FName& InstanceName,
    bool bNewSpawnBrowser
)

Selects the supplied assets in the primary content browser.

Public function

void

 

SyncBrowserToAssets

(
    const TArray< struct FAssetData >&...,
    bool bAllowLockedBrowsers,
    bool bFocusContentBrowser,
    const FName& InstanceName,
    bool bNewSpawnBrowser
)

Selects the supplied assets in the primary content browser.

Public function

void

 

SyncBrowserToAssets

(
    const TArray< UObject* >& Ass...,
    bool bAllowLockedBrowsers,
    bool bFocusContentBrowser,
    const FName& InstanceName,
    bool bNewSpawnBrowser
)

Selects the supplied assets in the primary content browser.

Public function

void

 

SyncBrowserToFolders

(
    const TArray< FString >& FolderLis...,
    bool bAllowLockedBrowsers,
    bool bFocusContentBrowser,
    const FName& InstanceName,
    bool bNewSpawnBrowser
)

Selects the supplied assets in the primary content browser.

Public function

void

 

SyncBrowserToItems

(
    const TArray< FContentBrowserItem >...,
    bool bAllowLockedBrowsers,
    bool bFocusContentBrowser,
    const FName& InstanceName,
    bool bNewSpawnBrowser
)

Selects the supplied items in the primary content browser.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss