SubAssetEditor icon indicating copy to clipboard operation
SubAssetEditor copied to clipboard

Huge freezes with prefabs

Open Artein opened this issue 2 years ago • 5 comments

Describe the bug When selecting Prefab with hundreds of gameobjects SubAsset window freezes Unity.

To Reproduce Steps to reproduce the behavior:

  1. Create Prefab with hundreds of game objects
  2. Open SubAsset window
  3. Select created prefab
  4. Huge freeze

Expected behavior Must work without freezes

Environment (please complete the following information):

  • Version 1.0.0
  • Platform: Editor(Windows/Mac)
  • Unity version: 2021.3.5f1

Additional context Seems like the problem is that SubAsset editor tries to show all gameobjects (Transform and RectTransform components) of a prefab in SubAsset tab. This creates a huge freezes with prefabs containing hundreds of gameobjects

Artein avatar Jul 06 '22 10:07 Artein

Thank you for your reporting!

mob-sakai avatar Jul 07 '22 01:07 mob-sakai

It appears that in some version of Unity, Transforms, etc. are now displayed as SubAssets.

mob-sakai avatar Jul 07 '22 04:07 mob-sakai

fixed in 1.0.1

mob-sakai avatar Jul 07 '22 11:07 mob-sakai

Well, now Editor is at least usable. But still there is a freeze for a few seconds.

My prefab is about 100 rows. Each row has 7 cells. Each cell has Terrain + PropHolder. In total about 100 rows, 700 cells, 700 Terrains, 700 PropHolders.

Only Terrain has components - Physics Body and Physics Shape (both DOTS authoring components). Seems like those empty entries from those components.

Is it possible to fix empty entries? Screenshot 2022-07-07 at 22 26 35 Screenshot 2022-07-07 at 22 27 46 Platform_Crystals_Dunes_Block_Basic.prefab.zip

Artein avatar Jul 07 '22 19:07 Artein

Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?

repos

mob-sakai avatar Jul 07 '22 21:07 mob-sakai