Search Unity

Question ARIA attributes

Discussion in 'UI Toolkit' started by dlorre, Dec 1, 2022.

  1. dlorre

    dlorre

    Joined:
    Apr 12, 2020
    Posts:
    699
    Is there a way to implement the equivalent of aria attributes or Bootstrap's data-target for UI Toolkit? I realize that I don't know how to read the attributes from a VisualElement.

    Basically I want to create a scrollview containing labels or buttons that would activate panels when pressed. While I can do it by code it would be simpler to add the target name as an attribute in the button/label.