Skip to content

Instantly share code, notes, and snippets.

@mikeage
Created February 18, 2021 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeage/ef173d36e33d373955449c98d3377ccc to your computer and use it in GitHub Desktop.
Save mikeage/ef173d36e33d373955449c98d3377ccc to your computer and use it in GitHub Desktop.
Install TMP Essential Resources
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