We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e648df5 commit ed7ab2fCopy full SHA for ed7ab2f
1 file changed
UnityInspector/src/game/features/inspector/utils.cpp
@@ -576,9 +576,13 @@ void Inspector::RefreshHierarchy()
576
577
const auto transformClass = assembly->Get("Transform", "UnityEngine");
578
if (!transformClass) return;
579
-
580
- const auto transforms = transformClass->FindObjectsByType<UT::Transform*>();
581
- if (transforms.empty()) return;
+ std::vector<UT::Transform*> transforms;
+ transforms = transformClass->FindObjectsByType<UT::Transform*>();
+ if (transforms.empty())
582
+ {
583
+ transforms = transformClass->FindObjectsOfType<UT::Transform*>();
584
+ if (transforms.empty()) return;
585
+ }
586
587
for (const auto& t : transforms)
588
{
0 commit comments