void displaySearchIn() { int old = (int)_searchInIndex; _searchInIndex = (SEARCH_IN)EditorGUILayout.Popup((int)_searchInIndex, _searchIn, GUILayout.Width(130)); if ((int)_searchInIndex != old) { if (_searchInIndex != SEARCH_IN.ALL_FREE_DOWNLOADABLE) { resetFilersOwnModels(); } else { resetFilters(); } triggerSearch(); } }
void OnEnable() { SketchfabPlugin.Initialize(); _searchInIndex = SEARCH_IN.ALL_FREE_DOWNLOADABLE; }