Skip to content

Instantly share code, notes, and snippets.

@empika
Last active August 29, 2015 14:16
Show Gist options
  • Save empika/10e703989ffecfa89a98 to your computer and use it in GitHub Desktop.
Save empika/10e703989ffecfa89a98 to your computer and use it in GitHub Desktop.
Load an array of sprites in unity
string spriteSheet = AssetDatabase.GetAssetPath( TileMapTexture );
Sprite[] sprites = AssetDatabase.LoadAllAssetsAtPath(spriteSheet).OfType<Sprite>().ToArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment