Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

SpriteOutlineToolOverlayPanel.uxml 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <UXML xmlns:ui="UnityEngine.UIElements" xmlns:eui="UnityEditor.UIElements" xmlns:aui="UnityEditor.U2D.Sprites.SpriteEditorTool">
  3. <aui:SpriteOutlineToolOverlayPanel name="SpriteOutlineToolOverlayPanel" picking-mode="Ignore">
  4. <ui:PopupWindow name = "spriteOutlineTool" text = "Outline Tool">
  5. <ui:VisualElement name="Content">
  6. <ui:VisualElement class="form-row">
  7. <ui:VisualElement class="form-editor">
  8. <ui:Slider name="OutlineDetailSlider" class="named-slider" direction="Horizontal" low-value="0" high-value="1" label="Outline Detail" tooltip="Accuracy of the generated outline. Small values will produce simpler outlines. Large values will produce denser outlines that fit to the Sprite better." />
  9. <eui:FloatField name="OutlineDetailField" class="slider-field" value="0" />
  10. </ui:VisualElement>
  11. </ui:VisualElement>
  12. <ui:VisualElement class="form-row">
  13. <ui:VisualElement class="form-editor">
  14. <ui:SliderInt name="AlphaToleranceSlider" class="named-slider" direction="Horizontal" low-value="0" high-value="254" label="Alpha Tolerance" tooltip="Pixels with alpha value smaller than tolerance will be considered transparent during outline detection." />
  15. <eui:IntegerField name="AlphaToleranceField" class="slider-field" value="0" />
  16. </ui:VisualElement>
  17. </ui:VisualElement>
  18. <ui:VisualElement class="form-row">
  19. <ui:Label name="Snap" tooltip="Snap points to nearest pixel." text="Snap" class = "toggle-label"/>
  20. <ui:Toggle name="SnapToggle" class="form-editor" value="true"/>
  21. </ui:VisualElement>
  22. <ui:VisualElement class="form-row" name ="OptimizeOutlineGroup" style="visibility:Hidden">
  23. <ui:Label name="OptimizeOutline" tooltip="Initialize weights automatically for the generated geometry" text="Optimize Outline" />
  24. <ui:Toggle name="OptimizeOutlineToggle" class="form-editor" value="true" />
  25. </ui:VisualElement>
  26. <ui:VisualElement name="GenerateRow" class="form-row">
  27. <ui:Button name="GenerateButton" text="Generate For Selected" tooltip="Generate new outline based on mesh detail value. If no SpriteRect is selected, it will generate outlines for all the Sprites that does not have a custom outline."/>
  28. <ui:Toggle name="ForceGenerateToggle" tooltip="Regenerate outline even if the Sprite/s already have one." />
  29. </ui:VisualElement>
  30. <ui:VisualElement name="CopyPasteRow" class="form-row">
  31. <ui:Button name="CopyButton" text="Copy" tooltip="Copy outline from Sprite"/>
  32. <ui:Button name="PasteButton" text="Paste" tooltip="Paste outline to Sprite"/>
  33. <ui:Button name="PasteAllButton" text="Paste All" tooltip="Paste outline to all Sprites"/>
  34. </ui:VisualElement>
  35. <ui:VisualElement name="PasteAlternateRow" class="form-row">
  36. <ui:Label name="PasteAlternateLabel"/>
  37. <ui:Button name="PasteAlternateButton" text="Paste" tooltip="Paste outline to Sprite"/>
  38. <ui:Button name="PasteAlternateAllButton" text="Paste All" tooltip="Paste outline to all Sprites"/>
  39. </ui:VisualElement>
  40. </ui:VisualElement>
  41. </ui:PopupWindow>
  42. </aui:SpriteOutlineToolOverlayPanel>
  43. </UXML>