class AssetPreview

book_4_sparkGenerated
code_blocksInput

Description

The AssetPreview class in the Editor.Assets namespace is designed to provide a preview of assets within the editor environment. It manages the creation and rendering of asset previews, including handling scenes, cameras, and lighting setups.

Members

Static Members

Member NameSummary
CreateForAssetCreates an AssetPreview instance for a given asset.
RenderAssetThumbnailRenders a thumbnail for the specified asset.

Instance Members

Member NameSummary
DisposeReleases resources used by the AssetPreview.
InitializeSceneInitializes the scene with world, camera, and lighting.
InitializeAssetInitializes the asset model or other components.
CreateWidgetCreates a widget for the asset preview.
CreateToolbarCreates a toolbar widget for the asset preview.
FrameSceneFrames the scene for viewing.
UpdateSceneUpdates the scene with the given cycle and time step.
CreateVideoCreates a video of the asset preview.
RenderToPixmapRenders the asset preview to a pixmap.

Properties

Member NameSummary
AssetGets or sets the asset associated with this preview.
CameraGets or sets the camera used in the scene.
WorldGets or sets the world in which the asset is previewed.
PreviewWidgetCycleSpeedAdjusts the cycle speed for the preview widget.
UsePixelEvaluatorForThumbsDetermines if the pixel evaluator is used for thumbnails.
IsAnimatedPreviewIndicates if the preview is animated.
VideoLengthSpecifies the length of the preview video.

Fields

Member NameSummary
SceneCenterDefines the center of the scene.
SceneSizeDefines the size of the scene.
PrimarySceneObjectRepresents the primary object in the scene.