You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Render only the selected layers again (onlySelected): the sprites of the selected layers are rendered, the others come from the last export into the same folder. New layers and layers of another size are rendered anyway. On a 3840×2160 screen with three cards, one changed card took 16 s instead of 35 to 57 s.
Changed
_preview.png is not exported by default any more: it took about a fifth of the time, and Unity does not use it. Turn on Export a preview image (exportPreview) to compare. Documents that saved this setting in the dialog keep it.
The colours of texts are analysed about three times as fast, with the same results. The rest of an export is Affinity rendering the sprites; docs/ARCHITECTURE.md lists where the time goes.
Updating from 1.2.0
Unity: change #v1.2.0 to #v1.3.0 in the git URL of the package, or update it in the Package Manager if it came from OpenUPM. Nothing changes in the prefabs: this version is about the exporter.
Affinity: delete "Unity UI Exporter" in the Scripts Library (right click, Delete Script...) and import the new file. Turn on Export a preview image in the dialog if you compare Unity with Affinity; documents that saved the setting keep it.
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.3.0
or from OpenUPM: openupm add com.matbcontrol.affinity-ui-exporter