fix: component icons will no longer be displayed in the scene view

This commit is contained in:
mob-sakai
2025-02-21 18:00:29 +09:00
parent 8b5f7ff57e
commit 803af8113d
8 changed files with 65 additions and 6 deletions

View File

@@ -204,7 +204,7 @@ namespace Coffee.UIParticleInternal
target.enabled = false;
// Find MonoScript of the specified component.
foreach (var script in Resources.FindObjectsOfTypeAll<MonoScript>())
foreach (var script in MonoImporter.GetAllRuntimeMonoScripts())
{
if (script.GetClass() != typeof(T))
{