Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Feature Request Expose UxmlObjectAttributeDescription or similar serialized type bag accessors

Discussion in 'UI Toolkit' started by david-wtf, Apr 18, 2023.

  1. david-wtf

    david-wtf

    Joined:
    Sep 30, 2021
    Posts:
    23
    Hi there I came across a similar need as the MultiColumnListView has, i.e. that I need to define collections of configuration attributes (i.e. in my specific case tab names for a custom tab view of mine). After inspecting the MultiColumnListView, I realized that it is using an internal UxmlObjectAttributeDescription for accessing serialized objects including lists of objects.

    Are there any plans for exposing this attribute description type, or the internal methods it is building upon so custom classes can use the same APIs?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    david-wtf likes this.
  3. david-wtf

    david-wtf

    Joined:
    Sep 30, 2021
    Posts:
    23
    Oh, I wasn't even aware of this attribute - it would have been my next feature request, for reducing repetitive boilerplate that comes with the UxmlTraits system Thanks for the update!
     
    karl_jones likes this.