unity
不能识别atlas
,需要将目录下所有.atlas
改成.atlas.txt
#!/bin/sh
function rename_atlas() {
for file in `ls $1`
do
if test -f $1"/"$file
then
if [ "${file##*.}"x = "atlas"x ];then
mv $1"/"$file $1"/"$file.txt
fi
else
rename_atlas $1"/"$file
fi
done
}
rename_atlas $1