I tried to search any related stuff, watched the optimization guides to check if I was missing a step but couldn’t find anything related. Sorry if it is a duplicated topic.
OBS.:
I tested with the Lost Crypt project on Unity 2019.4.12f1 with Sprite Shape Package on 3.0.14 version and the issue doesn’t happen.
Thanks for this info. Your errors look similar to those from this bug so it might be related.
If you have the time, maybe you could file a bug report with a project that demonstrates this bug and we can take a look. If you do send the report, please let me know so I can take a look.
@ed_s Thanks for the quick reply.
It really seems related, just the “action” that triggers the error that is different. On the Issue Tracker it says when disabling the Edit Shape and for me it was when entering Play Mode. But maybe I didn’t paid attention if actually I hit play with Edit Shape activated and by changing to Play Mode it disabled it, causing the “action” to be the same.
As soon as I return from work, I will send the Bug Report from the project on my machine.
I didn’t tested in a new project, but in theory this issue could be reproduced by:
Creating a new project on 2020.3.4f1 with a 2D Template;
Check if the current 2D Sprite Shape package is indeed the 5.1.1 on the Package Manager;
Create a Sprite Shape on the SampleScene;
Select Edit Shape on the Sprite Shape Controller and enable the Cache Geometry option;
Enter Play mode.
Obs.: I will test it in a new project before sending the BugReport. _______
Aside that, do you have an estimate date for when 5.1.2 for this package might be released?
I am not aware on the update cycle for packages.
@ed_s Perhaps you can tell me if caching will solve the problem with the spike in the profiler?
Checking the geometry cache has no effect.
Unity 19.4.24 SpriteShape 3.0.15
I have the same bug Unity 19.4.25 spriteshape 3.15 I have big spikes in the profiler. after I put the cache, the peaks disappear, but the graphics are not displayed like yours
@AlanPereiraArt@Sality
This issue has been fixed and will be published soon 3.0.16
Will post an update here as soon as its published. Sorry for inconvenience caused.
@Venkify
Sorry for my impatience, maybe you know at least the approximate dates when the update can be released, I want to plan it will have time to go to the beta test of my game. within a week or a month at least approximately?
Sorry )) but how your coders maked and testers tested i don’t understand. If we use one object all work right?
but what if we make multiple objects
))))) :
Creating a new project on 2019.4.25
Creating a new project on 2019.4.25f1 with a 2D Template;
Check if the current 2D Sprite Shape package is indeed the 3.0.16 on the Package Manager;
Thanks for posting repro project. Please note that SpriteShape geometry cache only gets saved when you enter Edit mode for SpriteShape. It seems the Prefab does not have valid cached data. Hence you may need to Open Prefab to Edit and enter Edit mode for each SpriteShape in the prefab to update/save the Cache. Please check the enclosed demo.
Alternatively you can also use the attached Editor script to automate this. Open the Prefab, select the Root GameObject and click “Assets/Cache SpriteShape Prefab” from the Menu. This should also update the Cache. This is also shown at the end of the Demo.
Thank you very much, your script really helped us, we have dozens of shapes and it takes a very long time by hand.
And the lag with the garbage collector disappeared. Thank you so much.
We have 3.0.17 and still getting this issue, Unity Version 2019.4.20f1 spriteshapes are in prefabs and have gone in and out of the edit spline to cache them.