Class SimpleTexturePreview
Texture preview GUI control. Draws Texture in the UI and supports view moving/zomming.
Inheritance
System.Object
FlaxEditor.Viewport.Previews.TexturePreviewBase
SimpleTexturePreview
Implements
System.IComparable
Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public class SimpleTexturePreview : TexturePreviewBase, IComparable, IDrawable
Constructors
SimpleTexturePreview()
Declaration
public SimpleTexturePreview()
Properties
Asset
Gets or sets the asset to preview.
Declaration
public Texture Asset { get; set; }
Property Value
Texture
|
Color
Gets or sets the color used to multiply texture colors.
Declaration
public Color Color { get; set; }
Property Value
Color
|
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)
Extension Methods
See Also
FlaxEditor.Viewport.Previews.TexturePreviewBase