Skip to content
Open
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
21 changes: 21 additions & 0 deletions ResourceChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ void ListMissing(){
SelectObject (dMissing.Object, ctrlPressed);
GUILayout.Label ("missing ", GUILayout.Width(48));
switch (dMissing.type) {
case "lod":
GUI.color = new Color (defColor.r, defColor.b, 0.8f, 1.0f);
break;
case "mesh":
GUI.color = new Color (0.8f, 0.8f, defColor.b, 1.0f);
break;
Expand Down Expand Up @@ -854,6 +857,24 @@ void CheckResources()
}
}

LODGroup[] lodGroups = FindObjects<LODGroup>();

// Check if any LOD groups have no renderers
foreach (var group in lodGroups) {
var lods = group.GetLODs();
for (int i = 0, l = lods.Length; i < l; i++) {
if (lods[i].renderers.Length == 0) {
MissingGraphic tMissing = new MissingGraphic();
tMissing.Object = group.transform;
tMissing.type = "lod";
tMissing.name = group.transform.name;
MissingObjects.Add(tMissing);
thingsMissing = true;
}
}
}


if (IncludeSpriteAnimations)
{
Animator[] animators = FindObjects<Animator>();
Expand Down