Created
February 18, 2021 17:35
-
-
Save mikeage/ef173d36e33d373955449c98d3377ccc to your computer and use it in GitHub Desktop.
Install TMP Essential Resources
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir tmp.plugin | |
wget -q https://download.packages.unity.com/com.unity.textmeshpro/-/com.unity.textmeshpro-2.0.1.tgz -O tmp.plugin/plugin.tgz | |
tar -C tmp.plugin -xzf tmp.plugin/plugin.tgz | |
mkdir tmp.package | |
tar -C tmp.package -xzf 'tmp.plugin/package/Package Resources/TMP Essential Resources.unitypackage' | |
for pn in tmp.package/*/pathname; do | |
id=${pn%/*} | |
id=${id#*/} | |
p=$(head -1 $pn) | |
d=${p%/*} | |
mkdir -p "tmp.package/$d" | |
[ -f "tmp.package/$id/asset" ] && cp -v "tmp.package/$id/asset" "tmp.package/$p" | |
cp "tmp.package/$id/asset.meta" "tmp.package/${p}.meta" | |
done | |
mkdir -p 'Assets/TextMesh Pro' | |
cp -R 'tmp.package/Assets/TextMesh Pro' Assets/ | |
rm -rf tmp.plugin tmp.package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment