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
[prefab]: repeated groups become instances of a nested prefab in the Components folder, on all screens of a document. Instances only store what differs in the design, and hidden layers in them are inactive objects.
[button]: groups and layers become Unity buttons. [hover], [pressed], [selected] and [disabled] layers, also hidden ones, are their states.
[fill:left], [fill:right], [fill:top], [fill:bottom] and [fill:radial]: bars and timers with one value from 0 to 1 (AffinityFill).
Updating from 1.0.0
Unity: change #v1.0.0 to #v1.1.0 in the git URL of the package. Unity then imports all .affui files again. Variants keep their overrides. The prefab files change once, because AffinityNode has new fields.
Affinity: delete "Unity UI Exporter" in the Scripts Library (right click, Delete Script...) and import the new file, because Affinity would add a second script with the same name.
The new tags need both the new script and the new package.
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.1.0