Skip to content

Commit

Permalink
remove references to dynamic bones for compatibility with latest VRCSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
bizzclaw committed Aug 22, 2024
1 parent fd70dfb commit 81c6ca8
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 81c6ca8

Please sign in to comment.