FPreviewProfileController

Controls the access to the preview profiles.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

IPreviewProfileController

FPreviewProfileController

References

Module

AdvancedPreviewScene

Header

/Engine/Source/Editor/AdvancedPreviewScene/Public/PreviewProfileController.h

Include

#include "PreviewProfileController.h"

Syntax

class FPreviewProfileController : public IPreviewProfileController

Remarks

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.

@note This class was created to decouple UnrealEd from AdvancedPreviewScene and prevent circular dependencies between the modules.

Constructors

Name Description

Public function

FPreviewProfileController()

Destructors

Name Description

Public function Virtual

~FPreviewProfileController()

Overridden from IPreviewProfileController

Name Description

Public function Virtual Const

FString

 

GetActiveProfile()

Returns the preview profiles currently active.

Public function Virtual Const

TArray< FStr...

 

GetPreviewProfiles

(
    int32& OutCurrentProfileIndex
)

Returns the list of available preview profiles names.

Public function Virtual

FOnPreviewPr...

 

OnPreviewProfileChanged()

Invoked after the active preview profile changed.

Public function Virtual

FOnPreviewPr...

 

OnPreviewProfileListChanged()

Invoked after the list of available profiles has changed.

Public function Virtual

bool

 

SetActiveProfile

(
    const FString& ProfileName
)

Set the specified preview profiles as the active one.