Search Unity

Is the XSD file generated by "Update UI Element Schema" wrong?

Discussion in 'UI Toolkit' started by StrawberryStatement, Apr 4, 2020.

  1. StrawberryStatement

    StrawberryStatement

    Joined:
    Mar 5, 2020
    Posts:
    5
    This is a problem that has troubled me for a long time.. I work with Unity2019.3.7f1 and vs2017.
    I try to use the "Template" and "Instance" tag in uxml, but it will prompt that there is no such definition.
    upload_2020-4-5_3-39-28.png
    And I check the UnityEngine.UIElements.xsd file , there is no "Template" and "Instance" in there. About Template, only the definition of TemplateContainer is in it..
    upload_2020-4-5_3-42-32.png

    It's bug or the way I used it is wrong?

    Thank you in advance.
     
    nick-morhun likes this.
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    780
    Hello,

    This was indeed a real issue due to those tags being special (there do map directly to Visual Elements). This is fixed in 2020.1 only at the moment.

    It would help us make the case for a back port if you reported this as a bug for 2019. Alternatively it may be possible to generate the schema in Unity 2020.1 and bring it back to your project in 2019.