Class SpriteAtlasPreview
Sprite atlas preview GUI control. Draws SpriteAtlas in the UI and supports view moving/zomming. Supports texture channels masking and color transformations.
Inheritance
System.Object
FlaxEditor.Viewport.Previews.TexturePreviewBase
SpriteAtlasPreview
Implements
System.IComparable
Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public class SpriteAtlasPreview : TexturePreviewCustomBase, IComparable, IDrawable
Constructors
SpriteAtlasPreview(Boolean)
Initializes a new instance of the SpriteAtlasPreview class.
Declaration
public SpriteAtlasPreview(bool useWidgets)
Parameters
System.Boolean
useWidgets
True if show viewport widgets. |
Properties
Asset
Gets or sets the sprite atlas to preview.
Declaration
public SpriteAtlas Asset { get; set; }
Property Value
SpriteAtlas
|
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)