Search Results for

    Show / Hide Table of Contents

    Class AssetPreview

    Generic asset preview editor viewport base class.

    Inheritance
    System.Object
    Control
    ContainerControl
    FlaxEngine.GUI.RenderOutputControl
    EditorViewport
    AssetPreview
    AnimatedModelPreview
    MaterialPreview
    ModelBasePreview
    ModelPreview
    ParticleSystemPreview
    PrefabPreview
    Implements
    System.IComparable
    IDrawable
    Inherited Members
    EditorViewport.FpsCameraFilteringFrames
    EditorViewport._cameraWidget
    EditorViewport._cameraButton
    EditorViewport._orthographicModeButton
    EditorViewport._prevInput
    EditorViewport._input
    EditorViewport._viewMousePos
    EditorViewport._mouseDelta
    EditorViewport.MouseSpeed
    EditorViewport.MouseWheelZoomSpeedFactor
    EditorViewport.ViewWidgetButtonMenu
    EditorViewport.ViewWidgetShowMenu
    EditorViewport.InputActions
    EditorViewport.OrientViewport(Quaternion)
    EditorViewport.OrientViewport(Quaternion)
    EditorViewport.AdjustCameraMoveSpeed(Int32)
    EditorViewport.TakeScreenshot(String)
    EditorViewport.CopyViewData(RenderView)
    EditorViewport.GetInput(EditorViewport.Input)
    EditorViewport.GetPrevInput(EditorViewport.Input)
    EditorViewport.CreateProjectionMatrix(Matrix)
    EditorViewport.CreateViewMatrix(Float3, Matrix)
    EditorViewport.ConvertMouseToRay(Float2)
    EditorViewport.ProjectPoint(Vector3, Float2)
    EditorViewport.OnControlMouseBegin(Window)
    EditorViewport.OnControlMouseEnd(Window)
    EditorViewport.OnLeftMouseButtonDown()
    EditorViewport.OnLeftMouseButtonUp()
    EditorViewport.OnRightMouseButtonDown()
    EditorViewport.OnRightMouseButtonUp()
    EditorViewport.OnMiddleMouseButtonDown()
    EditorViewport.OnMiddleMouseButtonUp()
    EditorViewport.UpdateView(Single, Vector3, Float2, Boolean)
    EditorViewport.Update(Single)
    EditorViewport.OnMouseDown(Float2, MouseButton)
    EditorViewport.OnMouseWheel(Float2, Single)
    EditorViewport.OnChildResized(Control)
    EditorViewport.OnKeyDown(KeyboardKeys)
    EditorViewport.PerformLayoutBeforeChildren()
    EditorViewport.Draw()
    EditorViewport.OnLostFocus()
    EditorViewport.MovementSpeed
    EditorViewport.MinMovementSpeed
    EditorViewport.MaxMovementSpeed
    EditorViewport.UseCameraEasing
    EditorViewport.MousePositionDelta
    EditorViewport.ViewTransform
    EditorViewport.ViewPosition
    EditorViewport.ViewOrientation
    EditorViewport.ViewDirection
    EditorViewport.ViewRay
    EditorViewport.ViewFrustum
    EditorViewport.Yaw
    EditorViewport.Pitch
    EditorViewport.YawPitch
    EditorViewport.EulerAngles
    EditorViewport.ViewportCamera
    EditorViewport.NearPlane
    EditorViewport.FarPlane
    EditorViewport.FieldOfView
    EditorViewport.OrthographicScale
    EditorViewport.UseOrthographicProjection
    EditorViewport.RelativePanning
    EditorViewport.InvertPanning
    EditorViewport.PanningSpeed
    EditorViewport.IsControllingMouse
    EditorViewport.ShowFpsCounter
    EditorViewport.MouseRay
    ContainerControl._children
    ContainerControl._containsFocus
    ContainerControl._isLayoutLocked
    ContainerControl.LockChildrenRecursive()
    ContainerControl.UnlockChildrenRecursive()
    ContainerControl.RemoveChildren()
    ContainerControl.DisposeChildren()
    ContainerControl.AddChild<T>()
    ContainerControl.AddChild<T>(T)
    ContainerControl.RemoveChild(Control)
    ContainerControl.GetChild(Int32)
    ContainerControl.GetChild<T>()
    ContainerControl.GetChildIndex(Control)
    ContainerControl.GetChildIndexAt(Float2)
    ContainerControl.GetChildAt(Float2)
    ContainerControl.GetChildAt(Float2, Func<Control, Boolean>)
    ContainerControl.GetChildAtRecursive(Float2)
    ContainerControl.GetClientArea()
    ContainerControl.SortChildren()
    ContainerControl.SortChildrenRecursive()
    ContainerControl.OnChildrenChanged()
    ContainerControl.GetDesireClientArea(Rectangle)
    ContainerControl.IntersectsChildContent(Control, Float2, Float2)
    ContainerControl.OnNavigate(NavDirection, Float2, Control, List<Control>)
    ContainerControl.CanNavigateChild(Control)
    ContainerControl.NavigationWrap(NavDirection, Float2, List<Control>, Float2)
    ContainerControl.UpdateContainsFocus()
    ContainerControl.UpdateChildrenBounds()
    ContainerControl.PerformLayoutAfterChildren()
    ContainerControl.ClearState()
    ContainerControl.DrawSelf()
    ContainerControl.DrawChildren()
    ContainerControl.ContainsPoint(Float2, Boolean)
    ContainerControl.PerformLayout(Boolean)
    ContainerControl.RayCast(Float2, Control)
    ContainerControl.OnMouseEnter(Float2)
    ContainerControl.OnMouseMove(Float2)
    ContainerControl.OnMouseLeave()
    ContainerControl.OnMouseUp(Float2, MouseButton)
    ContainerControl.OnMouseDoubleClick(Float2, MouseButton)
    ContainerControl.IsTouchPointerOver(Int32)
    ContainerControl.OnTouchEnter(Float2, Int32)
    ContainerControl.OnTouchDown(Float2, Int32)
    ContainerControl.OnTouchMove(Float2, Int32)
    ContainerControl.OnTouchUp(Float2, Int32)
    ContainerControl.OnTouchLeave(Int32)
    ContainerControl.OnCharInput(Char)
    ContainerControl.OnKeyUp(KeyboardKeys)
    ContainerControl.OnDragEnter(Float2, DragData)
    ContainerControl.OnDragMove(Float2, DragData)
    ContainerControl.OnDragLeave()
    ContainerControl.OnDragDrop(Float2, DragData)
    ContainerControl.OnSizeChanged()
    ContainerControl.Children
    ContainerControl.ChildrenCount
    ContainerControl.HasChildren
    ContainerControl.ContainsFocus
    ContainerControl.ClipChildren
    ContainerControl.CullChildren
    ContainerControl.IsTouchOver
    Control.Resize(Float2)
    Control.UpdateBounds()
    Control.UpdateTransform()
    Control.SetAnchorPreset(AnchorPresets, Boolean, Boolean)
    Control.Dispose()
    Control.Focus()
    Control.Defocus()
    Control.OnGotFocus()
    Control.OnStartContainsFocus()
    Control.OnEndContainsFocus()
    Control.Focus(Control)
    Control.StartMouseCapture(Boolean)
    Control.EndMouseCapture()
    Control.OnEndMouseCapture()
    Control.GetNavTarget(NavDirection)
    Control.GetNavOrigin(NavDirection)
    Control.NavigationFocus()
    Control.OnSubmit()
    Control.OnTouchLeave()
    Control.DoDragDrop(DragData)
    Control.LinkTooltip(String, Tooltip)
    Control.UnlinkTooltip()
    Control.OnShowTooltip(String, Float2, Rectangle)
    Control.OnTooltipShown(Tooltip)
    Control.OnTestTooltipOverControl(Float2)
    Control.IntersectsContent(Float2, Float2)
    Control.PointToParent(ContainerControl, Float2)
    Control.PointToParent(Float2)
    Control.PointToParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(ContainerControl, Float2)
    Control.PointToWindow(Float2)
    Control.PointFromWindow(Float2)
    Control.PointToScreen(Float2)
    Control.PointFromScreen(Float2)
    Control.OnLocationChanged()
    Control.SetScaleInternal(Float2)
    Control.SetPivotInternal(Float2)
    Control.SetShearInternal(Float2)
    Control.SetRotationInternal(Single)
    Control.OnVisibleChanged()
    Control.OnParentChangedInternal()
    Control.AddUpdateCallbacks(RootControl)
    Control.RemoveUpdateCallbacks(RootControl)
    Control.SetUpdate(Control.UpdateDelegate, Control.UpdateDelegate)
    Control.OnParentResized()
    Control.CompareTo(Object)
    Control.Compare(Control)
    Control.Top
    Control.Bottom
    Control.Left
    Control.Right
    Control.UpperLeft
    Control.UpperRight
    Control.BottomRight
    Control.BottomLeft
    Control.Scale
    Control.Pivot
    Control.Shear
    Control.Rotation
    Control.HasParent
    Control.BackgroundColor
    Control.BackgroundBrush
    Control.Enabled
    Control.EnabledInHierarchy
    Control.Visible
    Control.VisibleInHierarchy
    Control.IsDisposing
    Control.Root
    Control.RootWindow
    Control.DpiScale
    Control.ScreenPos
    Control.AutoFocus
    Control.IsFocused
    Control.IsNavFocused
    Control.IsMouseOver
    Control.IsDragOver
    Control.Tooltip
    Control.ShowTooltip
    Control.EditorBounds
    Control.LocationChanged
    Control.SizeChanged
    Control.ParentChanged
    Control.VisibleChanged
    Namespace: FlaxEditor.Viewport.Previews
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public abstract class AssetPreview : EditorViewport, IComparable, IDrawable, IEditorPrimitivesOwner

    Constructors

    AssetPreview(Boolean, ViewportCamera)

    Initializes a new instance of the AssetPreview class.

    Declaration
    protected AssetPreview(bool useWidgets, ViewportCamera camera)
    Parameters
    System.Boolean useWidgets

    If set to true use widgets for viewport, otherwise hide them.

    FlaxEditor.Viewport.Cameras.ViewportCamera camera

    The camera controller.

    AssetPreview(Boolean, Single)

    Initializes a new instance of the AssetPreview class.

    Declaration
    protected AssetPreview(bool useWidgets, float orbitRadius = 50F)
    Parameters
    System.Boolean useWidgets

    If set to true use widgets for viewport, otherwise hide them.

    System.Single orbitRadius

    The initial orbit radius.

    Fields

    EnvProbe

    The env probe. Allows to modify rendering settings.

    Declaration
    public EnvironmentProbe EnvProbe
    Field Value
    EnvironmentProbe

    PostFxVolume

    Gets the post fx volume. Allows to modify rendering settings.

    Declaration
    public PostFxVolume PostFxVolume
    Field Value
    PostFxVolume

    PreviewLight

    The preview light. Allows to modify rendering settings.

    Declaration
    public DirectionalLight PreviewLight
    Field Value
    DirectionalLight

    Sky

    The sky. Allows to modify rendering settings.

    Declaration
    public Sky Sky
    Field Value
    Sky

    SkyLight

    The sky light. Allows to modify rendering settings.

    Declaration
    public SkyLight SkyLight
    Field Value
    SkyLight

    Properties

    EditorPrimitives

    Gets the editor primitives renderer. Valid only if ShowEditorPrimitives is true.

    Declaration
    public EditorPrimitives EditorPrimitives { get; }
    Property Value
    FlaxEditor.Gizmo.EditorPrimitives

    HasLoadedAssets

    Gets a value indicating whether this viewport has loaded dependant assets.

    Declaration
    public override bool HasLoadedAssets { get; }
    Property Value
    System.Boolean

    Overrides
    EditorViewport.HasLoadedAssets

    ShowDebugDraw

    Gets or sets a value indicating whether draw DebugDraw shapes.

    Declaration
    public bool ShowDebugDraw { get; set; }
    Property Value
    System.Boolean

    ShowDefaultSceneActors

    Gets or sets a value indicating whether show default scene actors (sky, env probe, skylight, directional light, etc.).

    Declaration
    public bool ShowDefaultSceneActors { get; set; }
    Property Value
    System.Boolean

    ShowEditorPrimitives

    Gets or sets a value indicating whether draw DebugDraw shapes and other editor primitives such as gizmos.

    Declaration
    public bool ShowEditorPrimitives { get; set; }
    Property Value
    System.Boolean

    Methods

    add_CustomDebugDraw(AssetPreview.CustomDebugDrawDelegate)

    Declaration
    public void add_CustomDebugDraw(AssetPreview.CustomDebugDrawDelegate value)
    Parameters
    AssetPreview.CustomDebugDrawDelegate value

    DrawEditorPrimitives(GPUContext, ref RenderContext, GPUTexture, GPUTexture)

    Declaration
    public virtual void DrawEditorPrimitives(GPUContext context, ref RenderContext renderContext, GPUTexture target, GPUTexture targetDepth)
    Parameters
    GPUContext context

    RenderContext renderContext

    GPUTexture target

    GPUTexture targetDepth

    OnDebugDraw(GPUContext, ref RenderContext)

    Called when drawing debug shapes with DebugDraw for this viewport.

    Declaration
    protected virtual void OnDebugDraw(GPUContext context, ref RenderContext renderContext)
    Parameters
    GPUContext context

    The GPU context.

    RenderContext renderContext

    The render context.

    OnDestroy()

    Declaration
    public override void OnDestroy()
    Overrides
    EditorViewport.OnDestroy()

    remove_CustomDebugDraw(AssetPreview.CustomDebugDrawDelegate)

    Declaration
    public void remove_CustomDebugDraw(AssetPreview.CustomDebugDrawDelegate value)
    Parameters
    AssetPreview.CustomDebugDrawDelegate value

    Events

    CustomDebugDraw

    Custom debug drawing event (via DebugDraw).

    Declaration
    public event AssetPreview.CustomDebugDrawDelegate CustomDebugDraw
    Event Type
    AssetPreview.CustomDebugDrawDelegate

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)

    See Also

    EditorViewport
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat