Class TexturePreviewCustomBase
Base class for texture previews with custom drawing features. Uses in-build postFx material to render a texture.
Inheritance
System.Object
FlaxEditor.Viewport.Previews.TexturePreviewBase
TexturePreviewCustomBase
Implements
System.IComparable
Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class TexturePreviewCustomBase : TexturePreviewBase, IComparable, IDrawable
Constructors
TexturePreviewCustomBase(Boolean)
Declaration
protected TexturePreviewCustomBase(bool useWidgets)
Parameters
System.Boolean
useWidgets
True if show viewport widgets. |
Fields
_previewMaterial
The preview material instance used to draw texture.
Declaration
protected MaterialInstance _previewMaterial
Field Value
MaterialInstance
|
Properties
MipLevel
Gets or sets the mip level to show. The default value is -1.
Declaration
public float MipLevel { get; set; }
Property Value
System.Single
|
UsePointSampler
Gets or sets a value indicating whether use point sampler when drawing the texture. The default value is false.
Declaration
public bool UsePointSampler { get; set; }
Property Value
System.Boolean
|
ViewChannels
Gets or sets the view channels to show.
Declaration
public ChannelFlags ViewChannels { get; set; }
Property Value
FlaxEditor.Viewport.Previews.ChannelFlags
|
Methods
OnDestroy()
Method called when managed instance should be destroyed
Declaration
public override void OnDestroy()
Overrides
PerformLayoutBeforeChildren()
Perform layout for that container control before performing it for child controls.
Declaration
protected override void PerformLayoutBeforeChildren()
Overrides
SetTexture(Object)
Sets the texture to draw (material parameter).
Declaration
protected void SetTexture(object value)
Parameters
System.Object
value
The value. |
Extension Methods
See Also
FlaxEditor.Viewport.Previews.TexturePreviewBase