Search Unity

Question How to create Texture2D/Sprite Field?

Discussion in 'UI Toolkit' started by ktest112233, Nov 14, 2020.

  1. ktest112233

    ktest112233

    Joined:
    Jan 7, 2019
    Posts:
    37
    Hi,

    Is it possible to create the Texture2D/Sprite Field with UIElements as seen in the screenshot below? Thank you!

     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    We don't offer this out of the box but you can definitely implement that UI yourself in UI Toolkit (formally UIElements). Let us know if you need help creating that kind of layout/style.
     
  3. ktest112233

    ktest112233

    Joined:
    Jan 7, 2019
    Posts:
    37
    Thank for the reply. One thing I would like to ask is, are there any specific guidelines that can be followed if I want to make this UI item Open Source after creating it?
     
  4. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    Not sure what you mean. If you create a custom control in C#/USS/UXML, you can just put it on your own Github for anyone to use. Or are you asking how to make this custom control reusable within your own project?