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.
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.
Member Name | Summary |
---|---|
CreateForAsset | Creates an AssetPreview instance for a given asset. |
RenderAssetThumbnail | Renders a thumbnail for the specified asset. |
Member Name | Summary |
---|---|
Dispose | Releases resources used by the AssetPreview. |
InitializeScene | Initializes the scene with world, camera, and lighting. |
InitializeAsset | Initializes the asset model or other components. |
CreateWidget | Creates a widget for the asset preview. |
CreateToolbar | Creates a toolbar widget for the asset preview. |
FrameScene | Frames the scene for viewing. |
UpdateScene | Updates the scene with the given cycle and time step. |
CreateVideo | Creates a video of the asset preview. |
RenderToPixmap | Renders the asset preview to a pixmap. |
Member Name | Summary |
---|---|
Asset | Gets or sets the asset associated with this preview. |
Camera | Gets or sets the camera used in the scene. |
World | Gets or sets the world in which the asset is previewed. |
PreviewWidgetCycleSpeed | Adjusts the cycle speed for the preview widget. |
UsePixelEvaluatorForThumbs | Determines if the pixel evaluator is used for thumbnails. |
IsAnimatedPreview | Indicates if the preview is animated. |
VideoLength | Specifies the length of the preview video. |
Member Name | Summary |
---|---|
SceneCenter | Defines the center of the scene. |
SceneSize | Defines the size of the scene. |
PrimarySceneObject | Represents the primary object in the scene. |