CreateCellData() public method

public CreateCellData ( SpriteStudioCellMap cellMap, int mapId ) : void
cellMap SpriteStudioCellMap
mapId int
return void
        bool CreateCellDatas(SpriteStudioBaker baker)
        {
            baker.cellMaps = new Dictionary<string, List<SSCell>>();

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

            int mapId = 0;

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