Scripting API
Scripting API
ModelPrimitive
Record in Abyss.Core.Scenes, from Abyss.Core.
One primitive: a mesh of the import, and what it is drawn with.
public record ModelPrimitiveConstructors
ModelPrimitive
public ModelPrimitive(string Label, string Name, int? Material)One primitive: a mesh of the import, and what it is drawn with.
Parameters
Label:Mesh0/Primitive0, as a scene names it after the model's path.Name: What Bevy's loader names the entity it spawns for it:Mesh.Material, or the mesh's name alone.Material: Its material, by index intoModelDescription.Materials, or null for the default.
Properties
Label
public string Label { get; init; }Mesh0/Primitive0, as a scene names it after the model's path.
Name
public string Name { get; init; }What Bevy's loader names the entity it spawns for it: Mesh.Material, or the mesh's name alone.
Material
public int? Material { get; init; }Its material, by index into ModelDescription.Materials, or null for the default.
