API Reference · Materials and textures

MaterialLookup

Namespace: Ava3D

public sealed class MaterialLookup

The materials of a loaded model, addressed by the names the file gave them.

Properties

MemberDescription
IReadOnlyList<Material> All { get; }

Every material in the model, named or not.

Material Item { get; }

The material with this name.

IEnumerable<string> Names { get; }

Every name that can be looked up.

Methods

MemberDescription
bool Contains(string name)

Whether a material by this name exists.

Material Find(string name)

The material with this name, or null.

See also