cdmvision / unity-figma-importer

Unity Figma Importer turns your Figma design into Unity UI elements and can bind codes with layout files to create Unity apps with ease.
MIT License
102 stars 8 forks source link

Identifier uniqueness violation #63

Closed ibrahimpenekli closed 1 year ago

ibrahimpenekli commented 1 year ago

Identifier uniqueness violation: 'Name:357:2/Logo/Frame 608/Logo_Group/Group/Vector, Type:GameObject'. Multiple Objects with the same name/type are generated by this Importer. There is no guarantee that subsequent imports of this asset will properly re-link to these targets. UnityEditor.AssetImporters.AssetImporterEditor:ApplyRevertGUI () Cdm.Figma.UI.Editor.FigmaAssetImporterEditor:OnInspectorGUI () (at Packages/com.cdm.figma.ui/Editor/FigmaAssetImporterEditor.cs:116) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

ibrahimpenekli commented 1 year ago

It looks like it wont be fixed anytime soon: https://issuetracker.unity3d.com/issues/identifier-uniqueness-violation-warning-pops-up-when-adding-multiple-monobehaviour-to-model-prefab-root-via-assetpostprocesso

ibrahimpenekli commented 1 year ago

https://forum.unity.com/threads/upgrading-to-2019-3a-fbx-import-identifier-uniqueness-violation.720605/

ibrahimpenekli commented 1 year ago

We gotta generate unique names for each node in the GameObject hierarchy.