![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PreviewScene.h>
Inheritance diagram for FPreviewScene:Classes | |
| struct | ConstructionValues |
Public Attributes | |
| class UDirectionalLightComponent * | DirectionalLight = nullptr |
| class USkyLightComponent * | SkyLight = nullptr |
Protected Attributes | |
| TObjectPtr< class UWorld > | PreviewWorld = nullptr |
| class ULineBatchComponent * | LineBatcher = nullptr |
| bool | bForceAllUsedMipsResident |
Additional Inherited Members | |
Public Types inherited from FGCObject | |
| enum class | EFlags : uint32 { None = 0 , RegisterLater = 1 << 0 , AddStableNativeReferencesOnly = 1 << 1 } |
Static Public Member Functions inherited from FGCObject | |
| static COREUOBJECT_API void | StaticInit () |
Static Public Attributes inherited from FGCObject | |
| static COREUOBJECT_API UGCObjectReferencer * | GGCObjectReferencer = nullptr |
Encapsulates a simple scene setup for preview or thumbnail rendering.
| FPreviewScene::FPreviewScene | ( | FPreviewScene::ConstructionValues | CVS = ConstructionValues() | ) |
|
virtual |
|
virtual |
Adds a component to the preview scene. This attaches the component to the scene, and takes ownership of it.
|
overridevirtual |
Pure virtual that must be overloaded by the inheriting class. Use this method to serialize any UObjects contained that you wish to keep around.
| Collector | The collector of referenced objects. |
Implements FGCObject.
| void FPreviewScene::ClearLineBatcher | ( | ) |
Clean out the line batcher each frame
|
virtual |
Get the background color we use by default
| FRotator FPreviewScene::GetLightDirection | ( | ) |
Accessor for finding the current direction of the preview scene's DirectionalLight.
|
inline |
Access to line drawing
|
overridevirtual |
Overload this method to report a name for your referencer
Implements FGCObject.
|
inline |
|
inline |
|
inline |
Load/Save settings to the config, specifying the key
|
virtual |
Removes a component from the preview scene. This detaches the component from the scene, and returns ownership of it.
Function for modifying the current direction of the preview scene's DirectionalLight.
| void FPreviewScene::SetSkyCubemap | ( | class UTextureCube * | Cubemap | ) |
| void FPreviewScene::UpdateCaptureContents | ( | ) |
Update sky and reflection captures
|
protected |
This controls whether or not all mip levels of textures used by UMeshComponents added to this preview window should be loaded and remain loaded.
| class UDirectionalLightComponent* FPreviewScene::DirectionalLight = nullptr |
|
protected |
|
protected |
| class USkyLightComponent* FPreviewScene::SkyLight = nullptr |