* Fix a bug with the Scene Explorer Search feature (not Object search)
* Simplified parsing of primitive values to a better method
This commit is contained in:
sinaioutlander
2020-08-31 16:27:14 +10:00
parent 0fd382c1f6
commit 30b48b1f1f
4 changed files with 18 additions and 19 deletions

View File

@ -350,11 +350,24 @@ namespace Explorer
m_pageOffset = 0;
}
for (int i = offset; i < offset + m_limit && offset < m_searchResults.Count; i++)
for (int i = offset; i < offset + m_limit && i < m_searchResults.Count; i++)
{
var obj = m_searchResults[i];
UIHelpers.FastGameobjButton(obj.RefGameObject, obj.EnabledColor, obj.Label, obj.RefGameObject.activeSelf, SetTransformTarget, true, MainMenu.MainRect.width - 170);
if (obj.RefGameObject)
{
UIHelpers.FastGameobjButton(obj.RefGameObject,
obj.EnabledColor,
obj.Label,
obj.RefGameObject.activeSelf,
SetTransformTarget,
true,
MainMenu.MainRect.width - 170);
}
else
{
GUILayout.Label("<i><color=red>Null or destroyed!</color></i>", null);
}
}
}
else