---
title: type
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlmaterialproperty/type
---

# type

The data type stored in the material property’s value.

## Declaration

```swift
var type: MDLMaterialPropertyType { get set }
```

## Discussion

Discussion Each semantic value has one or more data types that are appropriate for its value. For example, the MDLMaterialSemantic.baseColor semantic provides per-pixel colors for a rendered surface, so appropriate values for that semantic include scalars (interpreted as a grayscale color), colors, texture images, or URLs that refer to texture images. The MDLMaterialSemantic.ambientOcclusionScale semantic provides a scale factor for the effect of ambient occlusion shading, so an appropriate value is a scalar or a grayscale image that varies that scalar value across the surface of the material.

## See Also

### Using a Material Property

- [name](modelio/mdlmaterialproperty/name.md)
- [semantic](modelio/mdlmaterialproperty/semantic.md)
