// remove rigidbodies by animator public static void RemoveSkeletonRigidBodies(Animator animator) { int counter = NSH.RemoveBonesComponents <Rigidbody>(animator, null); Debug.Log(string.Format("[NeuronUtilities] {0} Rigidbodies removed from {1}.", counter, animator.gameObject.name), animator.gameObject); }
public static void RemoveSkeletonBoneLines(Animator animator) { int counter = NSH.RemoveBonesComponents <BoneLine>(animator, delegate_remove_bone_line); Debug.Log(string.Format("[NeuronUtilities] {0} Bone lines removed from {1}.", counter, animator.gameObject.name), animator.gameObject); }