Search Results for

    Show / Hide Table of Contents

    Class ModelPreview

    Model asset preview editor viewport.

    Inheritance
    System.Object
    Control
    ContainerControl
    FlaxEngine.GUI.RenderOutputControl
    EditorViewport
    AssetPreview
    ModelPreview
    Implements
    System.IComparable
    IDrawable
    Inherited Members
    AssetPreview.PreviewLight
    AssetPreview.EnvProbe
    AssetPreview.Sky
    AssetPreview.SkyLight
    AssetPreview.PostFxVolume
    AssetPreview.add_CustomDebugDraw(AssetPreview.CustomDebugDrawDelegate)
    AssetPreview.remove_CustomDebugDraw(AssetPreview.CustomDebugDrawDelegate)
    AssetPreview.DrawEditorPrimitives(GPUContext, RenderContext, GPUTexture, GPUTexture)
    AssetPreview.ShowDefaultSceneActors
    AssetPreview.ShowDebugDraw
    AssetPreview.ShowEditorPrimitives
    AssetPreview.EditorPrimitives
    AssetPreview.HasLoadedAssets
    AssetPreview.CustomDebugDraw
    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.PerformLayoutBeforeChildren()
    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 class ModelPreview : AssetPreview, IComparable, IDrawable, IEditorPrimitivesOwner

    Constructors

    ModelPreview(Boolean)

    Initializes a new instance of the ModelPreview class.

    Declaration
    public ModelPreview(bool useWidgets)
    Parameters
    System.Boolean useWidgets

    if set to true use widgets.

    Properties

    Model

    Gets or sets the model asset to preview.

    Declaration
    public Model Model { get; set; }
    Property Value
    Model

    PreviewActor

    Gets the model actor used to preview selected asset.

    Declaration
    public StaticModel PreviewActor { get; }
    Property Value
    StaticModel

    ScaleToFit

    Gets or sets a value indicating whether scale the model to the normalized bounds.

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

    ShowBitangents

    Gets or sets a value indicating whether show model geometry bitangent vectors (aka binormals) debug view.

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

    ShowBounds

    Gets or sets a value indicating whether show model bounding box debug view.

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

    ShowCurrentLOD

    Gets or sets a value that shows LOD statistics

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

    ShowFloor

    Gets or sets a value indicating whether show floor model.

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

    ShowNormals

    Gets or sets a value indicating whether show model geometry normal vectors debug view.

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

    ShowTangents

    Gets or sets a value indicating whether show model geometry tangent vectors debug view.

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

    Methods

    Draw()

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

    OnDebugDraw(GPUContext, ref RenderContext)

    Called when drawing debug shapes with DebugDraw for this viewport.

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

    The GPU context.

    RenderContext renderContext

    The render context.

    Overrides
    AssetPreview.OnDebugDraw(GPUContext, ref RenderContext)

    OnDestroy()

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

    OnKeyDown(KeyboardKeys)

    When key goes down

    Declaration
    public override bool OnKeyDown(KeyboardKeys key)
    Parameters
    KeyboardKeys key

    Key value

    Returns
    System.Boolean

    True if event has been handled, otherwise false

    Overrides
    EditorViewport.OnKeyDown(KeyboardKeys)

    ResetCamera()

    Resets the camera to focus on a object.

    Declaration
    public void ResetCamera()

    Extension Methods

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

    See Also

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