all-iver / shapes2d

Shapes2D for Unity3D - Make simple art assets quickly in Unity
http://sub-c.org/Shapes2D/documentation/
MIT License
154 stars 28 forks source link

Prefab icon renders incorrectly #7

Open all-iver opened 4 years ago

all-iver commented 4 years ago

Report from a user:

Found a bug in shapes2D. using unity 2019.3.3f1. I created an empty object, applied a shape2D of a 1x1 rectangle. Then drug it to the project to create a prefab. Now when I click the prefab in the explorer the explorer icon (as well as the icon in the inspector constantly switches between a pink square and the unity prefab icon. when it's switching it makes the inspector unresponsive. I found a work-around, by disabling and re-enabling the sprite renderer on the prefer it fixes it, maybe even permanently. Another note: I am using the new 2D experimental render pipeline, i don't know if that has anything to do with it though.

Also:

After I disable and enable the sprite renderer it stops blinking back and forth between the icon and the sprite image. You're correct that the sprite image never correctly shows the sprite. It's always pink, but this is fine, it's the switching between the image and the icon that is causing issues. I've creating another work around, as it only seems to happen where the prefab has your components attached to the root object. So I just created an empty object and nested my shape. Now it doesn't do it anymore.