A material's textures: one property per texture slot its shader declares; see
BaseMaterial3D#textures
A slot you never set holds the material's default, usually Texture.WHITE. Each material narrows
this type with its own slots, as Material3DTextures does. The index type includes
undefined only so those can list optional slots: assigning undefined type-checks, but it
throws and leaves the slot empty.
A material's
textures: one property per texture slot its shader declares; see BaseMaterial3D#texturesA slot you never set holds the material's default, usually
Texture.WHITE. Each material narrows this type with its own slots, as Material3DTextures does. The index type includesundefinedonly so those can list optional slots: assigningundefinedtype-checks, but it throws and leaves the slot empty.Example