Navigation
API > API/Editor > API/Editor/AdvancedPreviewScene
Controls the access to the preview profiles. It serves as a bridge between the AdvancedPreviewScene and the UnrealEd modules and enable UnrealEd to change or observe change to the active profile.
This class was created to decouple UnrealEd from AdvancedPreviewScene and prevent circular dependencies between the modules.
| Name | FPreviewProfileController |
| Type | class |
| Header File | /Engine/Source/Editor/AdvancedPreviewScene/Public/PreviewProfileController.h |
| Include Path | #include "PreviewProfileController.h" |
Syntax
class FPreviewProfileController : public IPreviewProfileController
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPreviewProfileController() |
PreviewProfileController.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FPreviewProfileController() |
PreviewProfileController.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetViewerProfileNames | TArray< FString > | The list of available profiles. | PreviewProfileController.h | |
| AssetViewerSettings | UAssetViewerSettings * | Provides the list of available preview profiles along with the profile change delegates (to update the profile combo box selection) | PreviewProfileController.h | |
| AssetViewerSettingsChangedHandle | FDelegateHandle | PreviewProfileController.h | ||
| AssetViewerSettingsProfileAddRemoveHandle | FDelegateHandle | PreviewProfileController.h | ||
| CurrentProfileIndex | int32 | Holds the current profile index in the list. This is kept consistent with the cache list of names. | PreviewProfileController.h | |
| OnPreviewProfileListChangedDelegate | FOnPreviewProfileListChanged | PreviewProfileController.h | ||
| OnPreviewSettingChangedDelegate | FOnPreviewProfileChanged | PreviewProfileController.h | ||
| PerProjectSettings | UEditorPerProjectUserSettings * | Holds the asset viewer profile currently used by the project. | PreviewProfileController.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetActiveProfile() |
Returns the preview profiles currently active. | PreviewProfileController.h | |
virtual TArray< FString > GetPreviewProfiles
(
int32& OutCurrentProfileIndex |
Returns the list of available preview profiles names. | PreviewProfileController.h | |
virtual bool HasAnyUserProfiles() |
Returns true if user has added one or more of their own profiles | PreviewProfileController.h | |
virtual FOnPreviewProfileChanged & OnPreviewProfileChanged() |
Invoked after the active preview profile changed. | PreviewProfileController.h | |
virtual FOnPreviewProfileListChanged & OnPreviewProfileListChanged() |
Invoked after the list of available profiles has changed. | PreviewProfileController.h | |
virtual bool SetActiveProfile
(
const FString& ProfileName |
Set the specified preview profiles as the active one. | PreviewProfileController.h |