GenerateGeometryPanel.uxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <UXML xmlns:ui="UnityEngine.UIElements" xmlns:eui="UnityEditor.UIElements" xmlns:aui="UnityEditor.U2D.Animation">
  3. <aui:GenerateGeometryPanel name="GenerateGeometryPanel" picking-mode="Ignore">
  4. <ui:PopupWindow text="Geometry">
  5. <ui:VisualElement name="Content">
  6. <ui:VisualElement class="form-row">
  7. <ui:Label name="OutlineDetailLabel" tooltip="Accuracy of the generated outline. Small values will produce simpler outlines. Large values will produce denser outlines that fit to the Sprite better" text="Outline Detail" />
  8. <ui:VisualElement class="form-editor">
  9. <ui:Slider name="OutlineDetailSlider" direction="Horizontal" low-value="0" high-value="100" />
  10. <eui:IntegerField name="OutlineDetailField" class="slider-field" value="0" />
  11. </ui:VisualElement>
  12. </ui:VisualElement>
  13. <ui:VisualElement class="form-row">
  14. <ui:Label name="AlphaToleranceLabel" tooltip="Pixels with alpha value smaller than tolerance will be considered transparent during outline detection" text="Alpha Tolerance" />
  15. <ui:VisualElement class="form-editor">
  16. <ui:Slider name="AlphaToleranceSlider" direction="Horizontal" low-value="0" high-value="254" />
  17. <eui:IntegerField name="AlphaToleranceField" class="slider-field" value="0" />
  18. </ui:VisualElement>
  19. </ui:VisualElement>
  20. <ui:VisualElement class="form-row">
  21. <ui:Label name="SubdivideLabel" tooltip="Tesselate the Sprite by adding vertices inside the generated outline" text="Subdivide" />
  22. <ui:VisualElement class="form-editor">
  23. <ui:Slider name="SubdivideSlider" direction="Horizontal" low-value="0" high-value="100" />
  24. <eui:IntegerField name="SubdivideField" class="slider-field" value="0" />
  25. </ui:VisualElement>
  26. </ui:VisualElement>
  27. <ui:VisualElement class="form-row">
  28. <ui:Label name="GenerateWeightsLabel" tooltip="Initialize weights automatically for the generated geometry" text="Weights" />
  29. <ui:Toggle name="GenerateWeightsField" class="form-editor" value="true" />
  30. </ui:VisualElement>
  31. <ui:VisualElement class="form-row-space" />
  32. <ui:VisualElement name="GenerateSingleSprite" class="form-row">
  33. <ui:Button name="GenerateGeometryButton" text="Generate For Selected" tooltip="Generate Geometry for the selected Sprite"/>
  34. </ui:VisualElement>
  35. <ui:VisualElement name="GenerateMultipleSprite" class="form-row">
  36. <ui:Button name="GenerateGeometryAllButton" text="Generate For All Visible" tooltip="Generate Geometry for all the Sprites"/>
  37. </ui:VisualElement>
  38. </ui:VisualElement>
  39. </ui:PopupWindow>
  40. </aui:GenerateGeometryPanel>
  41. </UXML>