Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 06 Dec 10:02
· 8 commits to main since this release
159ce65

Added

  • Rotated text stays live and keeps its angle, also in rotated groups. Its shadow falls in the same direction as in the design.
  • Text frames keep their vertical alignment: top, middle or bottom. Their text always started at the top.
  • Highlights behind parts of a text (AffinityTextHighlight), and the stroke of letters from the character settings.
  • Text that is justified with its last line in the middle, on the right, or over the whole width.
  • Fill layers, for example one that darkens the game behind a window. They were left out.

Changed

  • Skewed and mirrored text becomes a sprite instead of straight live text. Tag the layer [live] to keep it as text.
  • An export no longer fills the undo history of the document. It left up to dozens of steps, and now at most one, plus one for new ids and one for changed settings.

Fixed

  • Texts whose shadows only differ in their direction no longer share one material.
  • Outlines of live text are as wide as in the design. They were up to twice as wide.
  • A screen whose layers are all in one group adapts to other proportions, also when a wide bar lies at the top.
  • Texts in square brackets, like [ 35 ], keep their name, and are no tags.
  • A text with a gradient that becomes a sprite loses its TextMesh Pro component.
  • The first line of text frames lies where Affinity draws it with every font. It was about a pixel too high at 32 px with Roboto.
  • Lines of different font sizes, like a title with text below it, have the same distances as in Affinity.
  • The spaces before and after a paragraph are not added any more; Affinity uses the larger one by default. Line breaks inside a paragraph (Shift+Enter) add no space.

Updating from 1.1.0

  • Unity: change #v1.1.0 to #v1.2.0 in the git URL of the package. Unity then imports all .affui files again. Variants keep their overrides.
  • Outlines of live text become thinner, and lines of text move by up to a few pixels, because both follow the design now. If you corrected them by hand in a variant, look at these texts.
  • Affinity: delete "Unity UI Exporter" in the Scripts Library (right click, Delete Script...) and import the new file. Export your screens again for everything under "Added", and for screens in one group that should adapt to other proportions.

Install

  • Affinity: import export-to-unity.afscript below into the Scripts Library, as in the quick start.
  • Unity: Package Manager, Install package from git URL:
    https://github.com/matbcontrol/affinity-ui-exporter.git?path=/unity/com.matbcontrol.affinity-ui-exporter#v1.2.0