Constructors

AssetPreview

Fields

PrimaryObject
SceneCenter
SceneSize
ScreenSize

Properties

Asset
Camera
IsAnimatedPreview Is this preview animated? If it's not animated then it's a waste of time rendering a video.
PreviewWidgetCycleSpeed If you want to slow down the cycle speed when displaying in a scene widget, you can do that here
Scene
UsePixelEvaluatorForThumbs If true, this preview will render the thumbnail multiple times in the cycle and pick the one with the least alpha and most luminance
VideoLength How long should the video be

Methods

CreateToolbar Create a widget to show only when hovering over the asset preview
CreateVideo
CreateWidget Create a widget to always show in the asset preview
Dispose
FrameScene
InitializeAsset Create the model or whatever
InitializeScene Create the world, camera, lighting
RenderToBitmap
RenderToPixmap
TickScene
UpdateScene Cycle is a float 0-1, timestep is the time since the last frame

Static Methods

CreateForAsset
RenderAssetThumbnail
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.