From 81c6ca804555a6307f0a08498f1948ac7c3621f1 Mon Sep 17 00:00:00 2001 From: Joseph Tomlinson Date: Wed, 21 Aug 2024 17:46:55 -0700 Subject: [PATCH] remove references to dynamic bones for compatibility with latest VRCSDK --- .../Editor/AvatarBuildReportUtility.cs | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/Packages/com.lolipolicedepartment.avatar-report/Editor/AvatarBuildReportUtility.cs b/Packages/com.lolipolicedepartment.avatar-report/Editor/AvatarBuildReportUtility.cs index ee10d92..3487f0c 100644 --- a/Packages/com.lolipolicedepartment.avatar-report/Editor/AvatarBuildReportUtility.cs +++ b/Packages/com.lolipolicedepartment.avatar-report/Editor/AvatarBuildReportUtility.cs @@ -343,18 +343,6 @@ private void DrawStats(float baseOffset = 0) GUILayout.Label(new GUIContent("Material slots: " + SelectedAvatarStats.materialCount + "/32", performanceIcon), EditorStyles.boldLabel, GUILayout.Height(20), GUILayout.MaxWidth(Screen.width / 2 - 5)); } using (new GUILayout.HorizontalScope()) - { - performanceIcon = GetPerformanceIcon(SelectedAvatarStats.GetPerformanceRatingForCategory(AvatarPerformanceCategory.DynamicBoneCollisionCheckCount)); - int dynamicBoneCollisionChecks = SelectedAvatarStats.dynamicBone?.collisionCheckCount ?? 0; - GUILayout.Label(new GUIContent("D. Bone collision checks: " + dynamicBoneCollisionChecks + "/256", performanceIcon), EditorStyles.boldLabel, GUILayout.Height(20), GUILayout.MaxWidth(Screen.width / 2 - 5)); - } - using (new GUILayout.HorizontalScope()) - { - performanceIcon = GetPerformanceIcon(SelectedAvatarStats.GetPerformanceRatingForCategory(AvatarPerformanceCategory.DynamicBoneSimulatedBoneCount)); - int dynamicBoneSimulatedBones = SelectedAvatarStats.dynamicBone?.transformCount ?? 0; - GUILayout.Label(new GUIContent("D. Bone simulated bones: " + dynamicBoneSimulatedBones + "/256", performanceIcon), EditorStyles.boldLabel, GUILayout.Height(20), GUILayout.MaxWidth(Screen.width / 2 - 5)); - } - using (new GUILayout.HorizontalScope()) { performanceIcon = GetPerformanceIcon(SelectedAvatarStats.GetPerformanceRatingForCategory(AvatarPerformanceCategory.PhysBoneTransformCount)); int physBoneTransforms = SelectedAvatarStats.physBone?.transformCount ?? 0; @@ -429,18 +417,6 @@ private void DrawStats(float baseOffset = 0) GUILayout.Label(new GUIContent("Basic meshes: " + SelectedAvatarStats.meshCount + "/24", performanceIcon), EditorStyles.boldLabel, GUILayout.Height(20), GUILayout.MaxWidth(Screen.width / 2 - 5)); } using (new GUILayout.HorizontalScope()) - { - performanceIcon = GetPerformanceIcon(SelectedAvatarStats.GetPerformanceRatingForCategory(AvatarPerformanceCategory.DynamicBoneComponentCount)); - int dynamicBoneComponentCount = SelectedAvatarStats.dynamicBone?.componentCount ?? 0; - GUILayout.Label(new GUIContent("D. Bone Components: " + dynamicBoneComponentCount + "/32", performanceIcon), EditorStyles.boldLabel, GUILayout.Height(20), GUILayout.MaxWidth(Screen.width / 2 - 5)); - } - using (new GUILayout.HorizontalScope()) - { - performanceIcon = GetPerformanceIcon(SelectedAvatarStats.GetPerformanceRatingForCategory(AvatarPerformanceCategory.DynamicBoneColliderCount)); - int dynamicBoneColliderCount = SelectedAvatarStats.dynamicBone?.colliderCount ?? 0; - GUILayout.Label(new GUIContent("D. Bone colliders: " + dynamicBoneColliderCount + "/32", performanceIcon), EditorStyles.boldLabel, GUILayout.Height(20), GUILayout.MaxWidth(Screen.width / 2 - 5)); - } - using (new GUILayout.HorizontalScope()) { performanceIcon = GetPerformanceIcon(SelectedAvatarStats.GetPerformanceRatingForCategory(AvatarPerformanceCategory.PhysBoneComponentCount)); int physBoneComponentCount = SelectedAvatarStats.physBone?.componentCount ?? 0;