Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # usage: send path of an asset in. the script will find the GUID from the associated meta file, and look for usages of this GUID anywhere.
- # of course only works with text mode (YAML) serialization
- GUID=$(grep -Po '(?<=guid: )\w+' $1.meta)
- echo "Object has GUID $GUID"
- echo "Searching for instances..."
- find . \( -name "*.asset" -o -name "*.prefab" -o -name "*.unity" \) -exec grep -l $GUID {} \;
Add Comment
Please, Sign In to add comment