Class ModelBasePreview
Model Base asset preview editor viewport.
Inheritance
System.Object
    
    
    FlaxEngine.GUI.RenderOutputControl
    
    
    ModelBasePreview
    Implements
System.IComparable
    
  Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ModelBasePreview : AssetPreview, IComparable, IDrawable, IEditorPrimitivesOwnerConstructors
ModelBasePreview(Boolean)
Initializes a new instance of the ModelBasePreview class.
Declaration
public ModelBasePreview(bool useWidgets)Parameters
| System.Boolean
        useWidgets if set to  | 
Fields
AnimatedModel
The animated model for display.
Declaration
public AnimatedModel AnimatedModelField Value
| AnimatedModel 
 | 
StaticModel
Properties
Asset
Gets or sets the model asset to preview.
Declaration
public ModelBase Asset { get; set; }Property Value
| ModelBase 
 | 
ScaleToFit
Gets or sets a value indicating whether scale the model to the normalized bounds.
Declaration
public bool ScaleToFit { get; set; }Property Value
| System.Boolean 
 | 
Methods
OnDestroy()
OnKeyDown(KeyboardKeys)
When key goes down
Declaration
public override bool OnKeyDown(KeyboardKeys key)Parameters
| KeyboardKeys
        key Key value | 
Returns
| System.Boolean True if event has been handled, otherwise false | 
Overrides
ResetCamera()
Resets the camera to focus on a object.
Declaration
public void ResetCamera()