UxmlChildElementDescription has no effect in UI Builder

Unsure if I am doing something wrong here but

public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription {
        get { yield break; }
}

seems to have no effect in UI Builder with a custom element. Neither does adding a child description like so

public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription {
        get {yield return new UxmlChildElementDescription(typeof(Label));
}

Unsure if this is just a limitation of UI Builder or a bug but no matter what it seems you can add any children to anything. It does seem to work with ListView but I’m not sure if this is just because ListView clears its children itself?

Hi @Windwalk_Rosco ,

uxmlChildElementsDescription it’s not enforced. It’s only used to generate the uxml schema, which is used to help auto-completion in Rider and other IDEs.

Ah, understood. Wish the docs were a little clearer about that