FPreviewProfileController

Controls the access to the preview profiles.

Unreal Engine C++ API Reference > Editor > AdvancedPreviewScene

Inheritance Hierarchy

References

   
Module AdvancedPreviewScene
Header /Engine/Source/Editor/AdvancedPreviewScene/Public/PreviewProfileController.h
Include #include "PreviewProfileController.h"

Syntax

class FPreviewProfileController : public [IPreviewProfileController](API\Editor\UnrealEd\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.

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

Constructors

Type Name Description
  FPreviewProfileController ()  

Destructors

Type Name Description
  ~FPreviewProfileController ()  

Overridden from IPreviewProfileController

Type Name Description
FString GetActiveProfile () Returns the preview profiles currently active.
TArray< FStr... GetPreviewProfiles ( int32& OutCurrentProfileIndex ) Returns the list of available preview profiles names.
FOnPreviewPr... OnPreviewProfileChanged () Invoked after the active preview profile changed.
FOnPreviewPr... OnPreviewProfileListChanged () Invoked after the list of available profiles has changed.
bool SetActiveProfile ( const FString& ProfileName ) Set the specified preview profiles as the active one.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library