bool IsAnimatedPreview { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsAnimatedPreview property indicates whether the asset preview is animated. If the preview is not animated, rendering a video would be unnecessary and inefficient. This property is useful for determining the appropriate rendering strategy for asset previews.

Usage

Use the IsAnimatedPreview property to check if the asset preview should be animated. This can help optimize rendering processes by avoiding unnecessary video rendering for static previews.

Example

// Example of using IsAnimatedPreview property
Editor.Assets.AssetPreview assetPreview = new Editor.Assets.AssetPreview();

if (assetPreview.IsAnimatedPreview)
{
    // Proceed with rendering a video
}
else
{
    // Skip video rendering
}