Guest User

Untitled

a guest
Jan 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. # 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.
  3. # of course only works with text mode (YAML) serialization
  4. GUID=$(grep -Po '(?<=guid: )\w+' $1.meta)
  5. echo "Object has GUID $GUID"
  6. echo "Searching for instances..."
  7. find . \( -name "*.asset" -o -name "*.prefab" -o -name "*.unity" \) -exec grep -l $GUID {} \;
Add Comment
Please, Sign In to add comment