Ejemplo n.º 1
0
 public static void SaveSpritesheetTextureToDisk(RagePixelSpriteSheet spriteSheet)
 {
     RagePixelUtil.saveAtlasPng(
         Path.GetDirectoryName(AssetDatabase.GetAssetPath(spriteSheet)),
         spriteSheet.name,
         spriteSheet.atlas.GetTexture("_MainTex") as Texture2D
         );
 }