MeshAsset
- Namespace: Turian.Engine.Core
- Source File: MeshAsset.cs
A range of submeshes inside a ModelAsset, produced as a child asset by the model importers — one per mesh-bearing node of the source file. Every mesh of one file shares that file's vertex and index buffers.
Properties
Model
(AssetReference
SubMeshStart
(uint) { get; set }: Gets or sets the index of the first submesh this mesh draws.
SubMeshCount
(uint) { get; set }: Gets or sets the number of consecutive submeshes this mesh draws.
Bounds
(Bounds) { get; set }: Gets or sets the axis-aligned bounds of the mesh in model space.
Public Methods
Resolve
public static MeshAsset? Resolve(Guid assetId)
Reads the mesh metadata registered under assetId from the asset database.
Parameters:
assetId(Guid): Identifier of the mesh child asset.
Returns: MeshAsset?
- The mesh asset, or
nullwhen it cannot be resolved.