Exemplo n.º 1
0
        void Awake()
        {
            m_instance = this;

            ItemHeight           = ((RectTransform)itemPrefab.transform).sizeDelta.y;
            nullPointerEventData = new UnityEngine.EventSystems.PointerEventData(null);

#if !UNITY_EDITOR && (UNITY_IOS || UNITY_WSA || UNITY_WSA_10_0)
            DEFAULT_PATH = Application.persistentDataPath;
#else
            DEFAULT_PATH = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
#endif

            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);
        }
Exemplo n.º 2
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);
        }