ManakhovN / FigmaToUnityImporter

The project that imports nodes from Figma into unity.
MIT License
483 stars 59 forks source link

Scaling option #13

Closed SolidAlloy closed 2 years ago

SolidAlloy commented 3 years ago

Due to technical reasons, designers on our team create UI in one resolution, but the canvas in Unity is three times larger, so we export all PNGs with 3x scale, and multiply all distances between elements by 3. Would it be possible/difficult to implement the scaling option when generating nodes?

ManakhovN commented 3 years ago

I think yes. It is possible to implement the scale option there. You will need to multiply size and positions to this number. If you want to get scaled renders of the nodes you can do it via Figma API, as I remember. I don't think that I am going to implement this feature soon. So you can try to do it.

ManakhovN commented 2 years ago

@SolidAlloy Added this option, you can try using it. The only limitation is that Figma API doesn't allow you to load images bigger than x4 scale.

SolidAlloy commented 2 years ago

Wow, thank you, I'll try it! Didn't expect that you actually implement it, thanks again :smile: