Class PrefabPreview
Prefab asset preview editor viewport.
Inheritance
System.Object
FlaxEngine.GUI.RenderOutputControl
PrefabPreview
Implements
System.IComparable
Namespace: FlaxEditor.Viewport.Previews
Assembly: FlaxEngine.CSharp.dll
Syntax
public class PrefabPreview : AssetPreview, IComparable, IDrawable, IEditorPrimitivesOwner
Constructors
PrefabPreview(Boolean)
Initializes a new instance of the PrefabPreview class.
Declaration
public PrefabPreview(bool useWidgets)
Parameters
System.Boolean
useWidgets
if set to |
Properties
Instance
Gets the instance of the prefab spawned for the preview.
Declaration
public Actor Instance { get; }
Property Value
Actor
|
Prefab
Gets or sets the prefab asset to preview.
Declaration
public Prefab Prefab { get; set; }
Property Value
Prefab
|
Methods
OnDestroy()
Update(Single)
Perform control update and all its children
Declaration
public override void Update(float deltaTime)
Parameters
System.Single
deltaTime
Delta time in seconds |