Binds a field or property of a component struct to a custom USS property.
Apply this attribute to a field or property of a struct that has the VisualElementComponentAttribute. The member receives the value of the custom USS property resolved on the element the component is attached to, so a style sheet can drive component data.
| Property | Description |
|---|---|
| name | The custom USS property name, for example "--my-color". |
| Constructor | Description |
|---|---|
| StylePropertyAttribute | Initializes a new instance of the StylePropertyAttribute class. |