CreateTexture() public method

public CreateTexture ( SpriteStudioCellMap cellMap ) : void
cellMap SpriteStudioCellMap
return void
        bool CreateTextures(SpriteStudioBaker baker)
        {
            string message = null;

            if (baker.cellMapList == null)
                return true;

            try
            {
                for (int i = 0; i < baker.cellMapList.Count; i++)
                {
                    SpriteStudioCellMap cellMap = baker.cellMapList [i];
                    message = cellMap.imagePath;
                    EditorUtility.DisplayProgressBar("Sprite Studio For Unity", "Create Texture(" + (i + 1) + "/" + baker.cellMapList.Count + ") : " + cellMap.name, 0.5f);
                    baker.CreateTexture(cellMap);
                }
            } catch (Exception e)
            {
                EditorUtility.DisplayDialog("Error", "Create Texture : " + message, "OK");
                Debug.Log(e.StackTrace);
                return false;
            }
            return true;
        }