using UnityEditor; using UnityEngine; namespace litefeel.Finder.Editor { class FindPrefabByTextue : FindAssetWindowBase { protected override void ConfigValues() { m_DisableFind = m_Asset == null; m_EnabledFindInScene = m_Asset != null; } protected override bool InGameObjectAndChildren(GameObject prefab) { return UnityUtil.AnyOneComponentAndChildren((comp) => { if (FindUtil.IgnoreType(comp)) return false; return UnityUtil.AnyOneProperty((prop) => { return prop.propertyType == SerializedPropertyType.ObjectReference && prop.objectReferenceValue == m_Asset; }, comp); }, prefab.transform); } } }