Skip to content

Commit

Permalink
Fix "Included In Build" UdonBehaviour counter in statistics summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Varneon committed Feb 12, 2022
1 parent 2bdf67f commit 2d59018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Varneon/UdonExplorer/Editor/UdonListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ private void RefreshAllStatistics()
{
RefreshActiveGameObjectCount(false);
RefreshEnabledComponentCount(false);
includedInBuildCount = data.Where(c => c.Behaviour.transform.GetComponentsInParent<Transform>(true).Any(d => !d.tag.Equals("EditorOnly"))).Count();
includedInBuildCount = data.Where(c => c.Behaviour.transform.GetComponentsInParent<Transform>(true).Where(d => d.tag.Equals("EditorOnly")).Count() == 0).Count();
manualSyncedCount = data.Where(c => c.SyncType == VRC.SDKBase.Networking.SyncType.Manual).Count();
continuousSyncedCount = data.Where(c => c.SyncType == VRC.SDKBase.Networking.SyncType.Continuous).Count();
RefreshStatisticsSummary();
Expand Down

0 comments on commit 2d59018

Please sign in to comment.