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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| // A quick subclass of FLabel that allows you to set a max line width for text. | |
| // The string will then be split by word and rejoined with newline characters added to fit that line width. | |
| // Usage... | |
| // GLabelWrap label = new GLabelWrap("Helvetica", "The quick brown fox jumps over the lazy dog.", 256f); | |
| // Futile.stage.AddChild(label); |
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
| #!/bin/bash | |
| BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| ASSET_DIR="$BASE_DIR/Assets/Resources/" | |
| find $ASSET_DIR -depth -name "*.json" -exec sh -c 'mv "$1" "${1%.json}.txt"' _ {} \; | |
| echo "Finished. All JSON files have been renamed." |