Description
The PreviewWidgetCycleSpeed
property allows you to adjust the speed at which the preview widget cycles through its display states in a scene. This can be useful if you want to slow down the cycle speed for better visualization or to match specific requirements of your asset preview.
Usage
To modify the cycle speed of the preview widget, set the PreviewWidgetCycleSpeed
property to a desired float value. A lower value will slow down the cycle speed, while a higher value will speed it up.
Example
// Example of setting the PreviewWidgetCycleSpeed
var assetPreview = new Editor.Assets.AssetPreview();
assetPreview.PreviewWidgetCycleSpeed = 0.5f; // Slows down the cycle speed
// Use the asset preview in your scene
assetPreview.InitializeScene();
assetPreview.InitializeAsset();