Class TexturePreview
Texture preview GUI control. Draws Texture in the UI and supports view moving/zooming. Supports texture channels masking and color transformations.
Inheritance
System.Object
    
    
    FlaxEditor.Viewport.Previews.TexturePreviewBase
    
    TexturePreview
    Implements
System.IComparable
    
  Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public class TexturePreview : TexturePreviewCustomBase, IComparable, IDrawableConstructors
TexturePreview(Boolean)
Initializes a new instance of the TexturePreview class.
Declaration
public TexturePreview(bool useWidgets)Parameters
| System.Boolean
        useWidgets True if show viewport widgets. | 
Properties
Asset
Gets or sets the texture to preview.
Declaration
public TextureBase Asset { get; set; }Property Value
| TextureBase 
 | 
Methods
CalculateTextureRect(out Rectangle)
Declaration
protected override void CalculateTextureRect(out Rectangle rect)Parameters
| Rectangle
        rect 
 | 
Overrides
FlaxEditor.Viewport.Previews.TexturePreviewBase.CalculateTextureRect(FlaxEngine.Rectangle)
  
  
  
  
  
  DrawTexture(ref Rectangle)
Declaration
protected override void DrawTexture(ref Rectangle rect)Parameters
| Rectangle
        rect 
 | 
Overrides
FlaxEditor.Viewport.Previews.TexturePreviewBase.DrawTexture(FlaxEngine.Rectangle)