From fed821fb2a0748af927e6800440268c2410077a5 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Tue, 14 Jul 2026 18:44:21 +0200 Subject: [PATCH] fix: use the guaranteed two-argument FindObjectsByType overload --- .../DCL/AvatarRendering/AvatarShape/Editor/BoneHider.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Explorer/Assets/DCL/AvatarRendering/AvatarShape/Editor/BoneHider.cs b/Explorer/Assets/DCL/AvatarRendering/AvatarShape/Editor/BoneHider.cs index bf012dce28e..8a59ea8097e 100644 --- a/Explorer/Assets/DCL/AvatarRendering/AvatarShape/Editor/BoneHider.cs +++ b/Explorer/Assets/DCL/AvatarRendering/AvatarShape/Editor/BoneHider.cs @@ -1,4 +1,5 @@ using UnityEditor; +using UnityEngine; using UnityEngine.Animations.Rigging; using ScriptableWizard = UnityEditor.ScriptableWizard; @@ -8,7 +9,7 @@ public class BoneHider : ScriptableWizard public static void ToggleBones() { // Find all instances of BoneRenderer in the scene. - BoneRenderer[] bones = FindObjectsOfType(); + BoneRenderer[] bones = Object.FindObjectsByType(FindObjectsInactive.Exclude, FindObjectsSortMode.None); // Check if there are any bones to toggle. If not, simply return. if (bones.Length == 0) return; @@ -27,7 +28,7 @@ public static void ToggleBones() public static void ToggleEffectors() { // Find all instances of Rig in the scene. - Rig[] rigs = FindObjectsOfType(); + Rig[] rigs = Object.FindObjectsByType(FindObjectsInactive.Exclude, FindObjectsSortMode.None); // Initialize a flag to indicate if the valueToSet has been determined. bool valueDetermined = false;