This commit is contained in:
parent
69dbb4130c
commit
5ad8f095b2
File diff suppressed because it is too large
Load Diff
|
@ -68,8 +68,8 @@ MonoBehaviour:
|
|||
m_Calls: []
|
||||
m_text: 'dsadsa '
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 49d215feaf9737b4b99940428ab34824, type: 2}
|
||||
m_sharedMaterial: {fileID: -8092961139225985143, guid: 49d215feaf9737b4b99940428ab34824, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: bc33625c39f9eef41a0dc90cc0dee2f2, type: 2}
|
||||
m_sharedMaterial: {fileID: 5035289879998008610, guid: bc33625c39f9eef41a0dc90cc0dee2f2, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
|
@ -242,9 +242,9 @@ MonoBehaviour:
|
|||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 21300000, guid: c3519ce271255094b9c09d64e9cbc0be, type: 3}
|
||||
m_HighlightedSprite: {fileID: 21300000, guid: c956b62b8e6f40c4a885966cd3eac87a, type: 3}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 21300000, guid: c956b62b8e6f40c4a885966cd3eac87a, type: 3}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -42,7 +42,7 @@ TextureImporter:
|
|||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1212eb85a92e41e42898f4fd038b72e4
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7c278e62a4df293478df13804a99778f
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- YouSheBiaoTiHei
|
||||
fallbackFontReferences:
|
||||
- {fileID: 12800000, guid: 02c0cfd29f8fee2498b2014f6eba79a2, type: 3}
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bc33625c39f9eef41a0dc90cc0dee2f2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,25 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f945cd23a57e99b46ac65684d5bb3be8
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- Microsoft YaHei
|
||||
fallbackFontReferences:
|
||||
- {fileID: 12800000, guid: 087481aad8b6aa14d998992107c4c1c2, type: 3}
|
||||
- {fileID: 12800000, guid: a9b7bd999eac5604a9e08204334b1ad2, type: 3}
|
||||
- {fileID: 12800000, guid: 545ff4be670f71b43aa82595be73a707, type: 3}
|
||||
- {fileID: 12800000, guid: 27334209b01c7e34585a64821820f210, type: 3}
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,66 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class SearchName1 : MonoBehaviour
|
||||
{
|
||||
public GameObject scrollView;
|
||||
public Transform scrollViewContent;
|
||||
public TMP_InputField inputField;
|
||||
public GameObject prefabsText;
|
||||
[Header("加入需要搜索的设备名称")]
|
||||
public List<GameObject> objs = new List<GameObject>();
|
||||
private List<GameObject> SearchObjects = new List<GameObject>();
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
scrollView.SetActive(false);
|
||||
InputFieldEvent();
|
||||
}
|
||||
|
||||
void InputFieldEvent()
|
||||
{
|
||||
inputField.onValueChanged.AddListener(a =>
|
||||
{
|
||||
if (a != "")
|
||||
{
|
||||
scrollView.SetActive(true);
|
||||
Serach(a);
|
||||
}
|
||||
else scrollView.SetActive(false);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
void Serach(string strName)
|
||||
{
|
||||
SearchObjects.Clear();
|
||||
|
||||
for (int i = 0; i < scrollViewContent.childCount; i++)
|
||||
{
|
||||
Destroy(scrollViewContent.GetChild(i).gameObject);
|
||||
}
|
||||
|
||||
|
||||
foreach (GameObject go in objs)
|
||||
{
|
||||
if (go.name.Contains(strName))
|
||||
{
|
||||
SearchObjects.Add(go);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < SearchObjects.Count; i++)
|
||||
{
|
||||
GameObject tmp= Instantiate(prefabsText, scrollViewContent,false);
|
||||
TextMeshProUGUI text= tmp.transform.GetChild(0).GetComponent<TextMeshProUGUI>();
|
||||
text.text = SearchObjects[i].name;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e7d68e8c998f0d74ba5b2359ff84efc5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class SelectDragDevice : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 61ef2c0a766406a4996c08a74616fab7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue