mob-sakai / SubAssetEditor

Editor for SubAsset in unity project.
https://github.com/mob-sakai/SubAssetEditor
MIT License
108 stars 9 forks source link

Huge freezes with prefabs #6

Open Artein opened 2 years ago

Artein commented 2 years ago

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):

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

mob-sakai commented 2 years ago

Thank you for your reporting!

mob-sakai commented 2 years ago

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

mob-sakai commented 2 years ago

fixed in 1.0.1

Artein commented 2 years ago

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

mob-sakai commented 2 years ago

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

repos