Describes a VisualElement material.
| Property | Description |
|---|---|
| material | The material to use to render the element. |
| Constructor | Description |
|---|---|
| MaterialDefinition | Creates from a Material. |
| Method | Description |
|---|---|
| GetColor | Gets a color property value by name. |
| GetFloat | Gets a float property value by name. |
| GetTexture | Gets a texture property value by name. |
| GetVector | Gets a vector property value by name. |
| IsEmpty | Help verify whether an asset has been assigned or not. |
| SetColor | Sets a color property value by name. |
| SetFloat | Sets a float property value by name. |
| SetTexture | Sets a texture property value by name. |
| SetVector | Sets a vector property value by name. |
| Method | Description |
|---|---|
| FromMaterial | Creates a material definition from a Material. |