Click or drag to resize

MaterialProperty Properties

The MaterialProperty type exposes the following members.

Properties
 NameDescription
Public propertyByteCount Gets the raw byte data count.
Public propertyFullyQualifiedName Gets the property's fully qualified name. Format: "{base name},{texture type semantic},{texture index}". E.g. "$clr.diffuse,0,0". This is the key that is used to index the property in the material property map.
Public propertyHasRawData Checks if the property has data.
Public propertyName Gets or sets the property key name. E.g. $tex.file. This corresponds to the "AiMatKeys" base name constants.
Public propertyPropertyType Gets or sets the type of property.
Public propertyRawData Gets the raw byte data. To modify/read this data, see the Get/SetXXXValue methods.
Public propertyTextureIndex Gets or sets the texture index, for non-texture properties this is always zero.
Public propertyTextureType Gets or sets the texture type semantic, for non-texture properties this is always None.
Top
See Also