Class CubeTexturePreview
Cube Texture asset preview editor viewport.
Inheritance
System.Object
FlaxEngine.GUI.RenderOutputControl
CubeTexturePreview
Implements
System.IComparable
Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public class CubeTexturePreview : MaterialPreview, IComparable, IDrawable, IEditorPrimitivesOwner, IVisjectSurfaceOwner, ISurfaceContext
Constructors
CubeTexturePreview(Boolean)
Initializes a new instance of the MaterialPreview class.
Declaration
public CubeTexturePreview(bool useWidgets)
Parameters
System.Boolean
useWidgets
if set to |
Fields
_previewMaterial
The preview material instance used to draw texture.
Declaration
protected MaterialInstance _previewMaterial
Field Value
MaterialInstance
|
Properties
CubeTexture
Sets the cube texture to preview.
Declaration
public CubeTexture CubeTexture { set; }
Property Value
CubeTexture
The cube texture. |
HasLoadedAssets
Gets a value indicating whether this viewport has loaded dependant assets.
Declaration
public override bool HasLoadedAssets { get; }
Property Value
System.Boolean
|
Overrides
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()
PerformLayoutBeforeChildren()
Perform layout for that container control before performing it for child controls.
Declaration
protected override void PerformLayoutBeforeChildren()