UActorComponent::GetCustomEditorPreviewWidget

If this component is set up to provide a preview window in editor (see GetEditorPreviewInfo), you can use this to customize the preview (to be something other than a world viewport).

Windows
MacOS
Linux

Override Hierarchy

UActorComponent::GetCustomEditorPreviewWidget()

UComposureCompositingTargetComponent::GetCustomEditorPreviewWidget()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/ActorComponent.h

Include

#include "Components/ActorComponent.h"

Syntax

virtual TSharedPtr< SWidget > GetCustomEditorPreviewWidget()

Remarks

If this component is set up to provide a preview window in editor (see GetEditorPreviewInfo), you can use this to customize the preview (to be something other than a world viewport). If this returns an empty pointer, then the preview will default to a viewport using the FMinimalViewInfo data from GetEditorPreviewInfo().

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