Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEditor;
using UnityEngine;
using UnityEngine.Animations.Rigging;
using ScriptableWizard = UnityEditor.ScriptableWizard;

Expand All @@ -8,7 +9,7 @@ public class BoneHider : ScriptableWizard
public static void ToggleBones()
{
// Find all instances of BoneRenderer in the scene.
BoneRenderer[] bones = FindObjectsOfType<BoneRenderer>();
BoneRenderer[] bones = Object.FindObjectsByType<BoneRenderer>(FindObjectsInactive.Exclude, FindObjectsSortMode.None);

// Check if there are any bones to toggle. If not, simply return.
if (bones.Length == 0) return;
Expand All @@ -27,7 +28,7 @@ public static void ToggleBones()
public static void ToggleEffectors()
{
// Find all instances of Rig in the scene.
Rig[] rigs = FindObjectsOfType<Rig>();
Rig[] rigs = Object.FindObjectsByType<Rig>(FindObjectsInactive.Exclude, FindObjectsSortMode.None);

// Initialize a flag to indicate if the valueToSet has been determined.
bool valueDetermined = false;
Expand Down
Loading