Class MaterialPreview
Material or Material Instance asset preview editor viewport.
Inheritance
System.Object
FlaxEngine.GUI.RenderOutputControl
MaterialPreview
Implements
System.IComparable
Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public class MaterialPreview : AssetPreview, IComparable, IDrawable, IEditorPrimitivesOwner, IVisjectSurfaceOwner, ISurfaceContext
Constructors
MaterialPreview(Boolean)
Initializes a new instance of the MaterialPreview class.
Declaration
public MaterialPreview(bool useWidgets)
Parameters
System.Boolean
useWidgets
if set to |
Properties
HasLoadedAssets
Gets a value indicating whether this viewport has loaded dependant assets.
Declaration
public override bool HasLoadedAssets { get; }
Property Value
System.Boolean
|
Overrides
Material
Gets or sets the material asset to preview. It can be Material or MaterialInstance.
Declaration
public MaterialBase Material { get; set; }
Property Value
MaterialBase
|
ParentContext
Declaration
public VisjectSurfaceContext ParentContext { get; }
Property Value
FlaxEditor.Surface.VisjectSurfaceContext
|
SelectedModelIndex
Gets or sets the selected preview model index.
Declaration
public int SelectedModelIndex { get; set; }
Property Value
System.Int32
|
SurfaceAsset
Undo
Methods
OnDestroy()
Update(Single)
Perform control update and all its children
Declaration
public override void Update(float deltaTime)
Parameters
System.Single
deltaTime
Delta time in seconds |