Vixen
02b45cc4
csharp
public sealed class ModelImportView

A model, open for editing: what came out of it, and the settings that decide what will.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The part list is the sidecar's, not an import's. A model is a model and also a mesh per material, a skeleton and a clip per animation; the last import wrote all of them into subAssets, so the list opens instantly and says what is actually addressable today. Re-importing to populate a panel would put Assimp between a double-click and a window.

⚠ An asset that has never been imported shows an empty list and says so, rather than showing nothing and letting it read as a model with no meshes in it. That state is ordinary — a file just dropped into the project has it until the next import pass.

⚠ No LOD preview and no viewport. Doc 11 asks for both. Drawing a mesh needs a device and a render target, which is the application's — the same wall the texture preview meets. The levels themselves now exist: ModelCompiler writes a Meshlets sub-asset holding the whole cluster hierarchy, so what is missing is a way to draw a cut through it rather than anything to draw.

Fields and properties (6)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public TreeView Parts

    The meshes, the skeleton and the clips, grouped by what they are.

  • public EmptyState Empty

    Shown when the asset has never been imported.

  • public ImportSettingsView SettingsView

    The settings, the overrides and the addressable block.

  • public int PartCount

    How many parts are listed.

Methods (3)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void Show(ModelImportDocument model)

    Shows a model.

  • public string Summary()

    The count, as the heading a caller may want to show.

Used by (2)

  • ImportViewTestsVixen.Editor.AssetEditors.Tests
  • ModelEditorFactoryVixen.Editor.AssetEditors