Example #1
0
        void Awake()
        {
            m_instance = this;

            itemHeight = ((RectTransform)itemPrefab.transform).sizeDelta.y;

            nullPointerEventData = new UnityEngine.EventSystems.PointerEventData(null);

            InitializeFiletypeIcons();
            filetypeIcons = null;

            SetExcludedExtensions(excludeExtensions);
            excludeExtensions = null;

            filenameInputField.onValidateInput += OnValidateFilenameInput;

            InitializeQuickLinks();
            quickLinks = null;

            allFilesFilter = new Filter(ALL_FILES_FILTER_TEXT);
            filters.Add(allFilesFilter);

            listView.SetAdapter(this);
        }
Example #2
0
 public void SetFileBrowser(FileBrowserPlugin fileBrowser)
 {
     this.fileBrowser = fileBrowser;
 }