Navigation
Unreal Engine C++ API Reference > Runtime > Engine
Inheritance Hierarchy
- FGCObject
- FPreviewScene
- FAdvancedPreviewScene
- FContextualAnimPreviewScene
- FDatabasePreviewScene
- IDisplayClusterConfiguratorPreviewScene
- IPersonaPreviewScene
- FThumbnailPreviewScene
- FAnimationSequenceThumbnailScene
- FAnimBlueprintThumbnailScene
- FBlendSpaceThumbnailScene
- FClassActorThumbnailScene
- FBlueprintThumbnailScene
- FClassThumbnailScene
- FFleshAssetThumbnailScene
- FGeometryCacheThumbnailScene
- FGeometryCollectionThumbnailScene
- FIKRetargeterThumbnailScene
- FMaterialThumbnailScene
- FParticleSystemThumbnailScene
- FPhysicsAssetThumbnailScene
- FSkeletalMeshThumbnailScene
- FStaticMeshThumbnailScene
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/PreviewScene.h |
Include | #include "PreviewScene.h" |
Syntax
class FPreviewScene : public FGCObject
Remarks
Encapsulates a simple scene setup for preview or thumbnail rendering.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bForceAllUsedMipsResident | This controls whether or not all mip levels of textures used by UMeshComponents added to this preview window should be loaded and remain loaded. |
![]() |
UDirectionalLightComponent * | DirectionalLight | |
![]() |
ULineBatchComponent * | LineBatcher | |
![]() |
TObjectPtr< class UWorld > | PreviewWorld | |
![]() |
USkyLightComponent * | SkyLight |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FPreviewScene
(
ConstructionValues CVS |
For physical correct light computations we multiply diffuse and specular lights by PI (see LABEL_RealEnergy) |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddComponent
(
UActorComponent* Component, |
Adds a component to the preview scene. |
![]() |
void | Clean out the line batcher each frame | |
![]() ![]() ![]() |
FLinearColor | Get the background color we use by default | |
![]() |
FRotator | Accessor for finding the current direction of the preview scene's DirectionalLight. | |
![]() ![]() |
ULineBatchComponent * | Access to line drawing | |
![]() ![]() |
FSceneInterface * | GetScene () |
|
![]() ![]() |
UWorld * | GetWorld () |
Accessors. |
![]() |
void | LoadSettings
(
const TCHAR* Section |
Load/Save settings to the config, specifying the key |
![]() ![]() |
void | RemoveComponent
(
UActorComponent* Component |
Removes a component from the preview scene. |
![]() |
void | SaveSettings
(
const TCHAR* Section |
|
![]() |
void | SetLightBrightness
(
float LightBrightness |
|
![]() |
void | SetLightColor
(
const FColor& LightColor |
|
![]() |
void | SetLightDirection
(
const FRotator& InLightDir |
Function for modifying the current direction of the preview scene's DirectionalLight. |
![]() |
void | SetSkyBrightness
(
float SkyBrightness |
|
![]() |
void | SetSkyCubemap
(
UTextureCube* Cubemap |
|
![]() |
void | Update sky and reflection captures |
Overridden from FGCObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddReferencedObjects
(
FReferenceCollector& Collector |
Serializer. |
![]() ![]() ![]() |
FString | Overload this method to report a name for your referencer |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
ConstructionValues |