Scripting API

Scripting API

MeshPartName

Record in Abyss.Core, from Abyss.Core.

A part of a model's mesh — what is drawn with one of its materials — as the model's sidecar keeps it for the key the build writes of it: Addresses.Models.Door.Meshes.Frame.

public record MeshPartName

Constructors

MeshPartName

public MeshPartName(string Label, string Mesh, string? Material)

A part of a model's mesh — what is drawn with one of its materials — as the model's sidecar keeps it for the key the build writes of it: Addresses.Models.Door.Meshes.Frame.

Parameters

  • Label: Mesh0/Primitive0, what a load names it by after the model's path.
  • Mesh: What the model calls the mesh it is a part of; empty for one it names nothing.
  • Material: What the model calls the material it is drawn with, or that material's label where it names it nothing; null for the default.

Properties

Label

public string Label { get; init; }

Mesh0/Primitive0, what a load names it by after the model's path.

Mesh

public string Mesh { get; init; }

What the model calls the mesh it is a part of; empty for one it names nothing.

Material

public string? Material { get; init; }

What the model calls the material it is drawn with, or that material's label where it names it nothing; null for the default.

Methods

Of

public static IReadOnlyList<MeshPartName> Of(ModelDescription described)

Every part of every mesh of a model, in its order, as its import describes them.

Parameters

  • described