搜索框

This commit is contained in:
Afeijia 2023-08-30 13:28:47 +08:00
parent ea3ab23f75
commit 8292c30382
2 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,7 @@ Material:
m_ValidKeywords:
- _EMISSION
m_InvalidKeywords: []
m_LightmapFlags: 2
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1

View File

@ -211,7 +211,8 @@ public class SearchName : MonoBehaviour
Array.ForEach(s, (item) =>
{
if (item.name == objs_str[co])
{ ;
{
;
GameObject go1 = GameManager.Inst.FindParent(item.lines[0].gameObject, GameManager.Inst.IsDesiredParent);
GameObject go2 = GameManager.Inst.FindParent(item.lines[1].gameObject, GameManager.Inst.IsDesiredParent);
transparentGlows.Add(go1.GetComponent<TransparentGlow>());
@ -333,7 +334,9 @@ public class SearchName : MonoBehaviour
void init()
{
for (int i = 0; i < scrollViewContent.childCount; i++)
var count = scrollViewContent.childCount;
for (int i = count - 1; i >= 0; i--)
{
DestroyImmediate(scrollViewContent.GetChild(i).gameObject);
}