protected virtual void OnObjectAwaked(ExposeToEditor obj) { if (!m_isSpawningPrefab) { if (!obj.MarkAsDestroyed && m_treeView.IndexOf(obj) == -1) { if (IsFilterEmpty) { ExposeToEditor parent = obj.GetParent(); m_treeView.AddChild(parent, obj); } else { if (Filter(obj)) { m_treeView.Add(obj); } } } } }