Пример #1
0
    static void Find()
    {
        _SelectAssetType = -1;
        if (_filePrefabPath == null || _filePrefabPath.Count == 0)
        {
            _filePrefabPath.Add(Application.dataPath);
        }
        _readyToFind   = new List <string> ();
        _prefabs       = new List <PrefabDependencies> ();
        _AllAssetsData = new AllAssetsData();
        for (int i = 0; i < _filePrefabPath.Count; i++)
        {
            FindAllPath(_filePrefabPath[i]);
        }

        CreatePrefabData();
        RestPrefabDependencie();

        _AssetType = new string[_AllAssetsData._data.Count];
        int count = 0;

        for (int i = 0; i < _AllAssetsData._data.Count; i++)
        {
            _AssetType[count] = _AllAssetsData._data[i]._expandname;
            count++;
        }
    }
Пример #2
0
	static void Find(){
		_SelectAssetType = -1;
		if (_filePrefabPath == null || _filePrefabPath.Count == 0)
			_filePrefabPath.Add (Application.dataPath);
		_readyToFind = new List<string> ();
		_prefabs = new List<PrefabDependencies> ();
		_AllAssetsData = new AllAssetsData ();
		for (int i = 0; i < _filePrefabPath.Count; i++) {
			FindAllPath(_filePrefabPath[i]);
		}

		CreatePrefabData ();
		RestPrefabDependencie ();

		_AssetType = new string[_AllAssetsData._data.Count];
		int count = 0;
		for (int i = 0;i < _AllAssetsData._data.Count;i++) {
			_AssetType[count] = _AllAssetsData._data[i]._expandname;
			count++;
		}

	}