Search Unity

Feature Request need 'public' access for VisualElement.isCompositeRoot

Discussion in 'UI Toolkit' started by Devi-User, Sep 1, 2019.

  1. Devi-User

    Devi-User

    Joined:
    Apr 30, 2016
    Posts:
    61
    This field allows you to implement behavior that could not be done otherwise - to focus on the parent. Fields such as excludeFromFocusRing and isCompositeRoot are used by standard controls, but we cannot repeat their behavior “cleanly”, since access to these fields is closed.
    At the same time, we are given access to the delegatesFocus property, which we cannot change for our controls, since it requires a change to isCompositeRoot.

    Please make this field public or automatically change it when we use delegatesFocus.
     
  2. patrickf

    patrickf

    Unity Technologies

    Joined:
    Oct 24, 2016
    Posts:
    57
    Hi, this is a work in progress. VisualElement.isCompositeRoot is likely to change in the future and we have no plan to make it public until its fate is decided. VisualElement.delegatesFocus will stay. I admit that is useless for it to be public at the moment. Hopefully this will be cleaned up soon.