ManakhovN / FigmaToUnityImporter

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

FigmaNodeGenerator -> AddFills -> NullReferenceException #32

Closed Smirnov-Mikhail closed 1 year ago

Smirnov-Mikhail commented 1 year ago

Hello! We have fill.type "GRADIENT_LINEAR" for TextMeshProUGUI

I'm not sure how it should work, but I made the hack (on the screenshot) and it doesn't throw exception now and looks similar (but not the same)

FigmaNodeGeneratorNullRef

ManakhovN commented 1 year ago

@Smirnov-Mikhail Hello! Thank you. I think it should work. I will add your changes on the weekends (If you want you can make a PR and you will be in the list of contributors). I wanted to change the logic of gradients to shaders. But I am bad at writing them.

Smirnov-Mikhail commented 1 year ago

I think I can't link issue and PR, but anyway I created it: https://github.com/ManakhovN/FigmaToUnityImporter/pull/34

ManakhovN commented 1 year ago

@Smirnov-Mikhail Thank you very much! Accepted the PR