API Reference · Model and texture loading

GltfDiagnostic

Namespace: Ava3D

public sealed record class GltfDiagnostic

One thing the reader could not carry over from a file, and why.

The reader is tolerant by default: a primitive it cannot build is left out and the rest of the model loads, because a character with one broken accessory is more useful than no character. That tolerance would be a trap without this list — it is how a caller finds out that the model on screen is not quite the model in the file. GltfLoadOptions.Validate turns the list into an exception.

Constructors

MemberDescription
GltfDiagnostic(GltfDiagnosticKind Kind, int Index, string Message)

One thing the reader could not carry over from a file, and why.

The reader is tolerant by default: a primitive it cannot build is left out and the rest of the model loads, because a character with one broken accessory is more useful than no character. That tolerance would be a trap without this list — it is how a caller finds out that the model on screen is not quite the model in the file. GltfLoadOptions.Validate turns the list into an exception.

Kind

What was dropped or substituted.

Index

The glTF index of the element concerned; which array it indexes depends on Kind.

Message

What happened, in words.

Properties

MemberDescription
int Index { get; set; }

The glTF index of the element concerned; which array it indexes depends on Kind.

GltfDiagnosticKind Kind { get; set; }

What was dropped or substituted.

string Message { get; set; }

What happened, in words.

See also