MeshAsset#
Shared project-owned GLB source; decoded vertices are derived, not authored JSON.
public sealed class MeshAssetMembers: Animations · BaseColor · BoundsSize · Center · Glb · Id · MeshAsset · Primitive · Radius · Recipe · Vertices
Animations#
public SkeletalAnimation Animations { get; }Shared lazy skeletal import. Throws with diagnostics for unsupported rigs; static import is unchanged.
BaseColor#
public SpritePixels? BaseColor { get; }BoundsSize#
public Vector3 BoundsSize { get; }Derived local-space axis-aligned size; collision/build systems consume it without serializing mesh analysis.
Center#
public Vector3 Center { get; }Glb#
public byte[] Glb { get; }Id#
public string Id { get; }MeshAsset#
public MeshAsset(string id, MeshRecipe recipe);A generated mesh (see MeshGenerators): built from its recipe; nothing to package but the recipe.
public MeshAsset(string id, byte[] glb, SpritePixels? baseColor);public MeshAsset(string id, string primitive);A generated primitive (see Primitives3D): no source file, nothing to package but its kind.
Primitive#
public string? Primitive { get; }Built-in kind ("cube", …) for primitive meshes; null for imported GLB and generated meshes.
Radius#
public float Radius { get; }Derived local-space sphere containing every vertex; used by editor framing and future culling.
Recipe#
public MeshRecipe? Recipe { get; }The recipe of a generated mesh (see MeshGenerators); null for primitives and imported GLB meshes.
Vertices#
public float[] Vertices { get; }Related types#
SkeletalAnimation · SpritePixels
Source#
- Model3D.cs