public static void CreateTextureGroup(MA_TextureAtlasserProAtlas atlas, string name)
        {
            MA_TextureGroupRegistration _textureGroupRegistration = new MA_TextureGroupRegistration();

            _textureGroupRegistration.name = name;
            atlas.textureGroupRegistration.Add(_textureGroupRegistration);

            foreach (MA_TextureAtlasserProQuad q in atlas.textureQuads)
            {
                MA_TextureGroup _textureGroup = new MA_TextureGroup();
                _textureGroup.name = name;
                q.textureGroups.Add(_textureGroup);
            }
        }
        public static void SetTextureGroups(MA_TextureAtlasserProAtlas atlas, MA_TextureAtlasserProQuad quad)
        {
            if (quad.textureGroups == null)
            {
                quad.textureGroups = new List <MA_TextureGroup>();
            }

            //Add texture groups
            foreach (MA_TextureGroupRegistration tgr in atlas.textureGroupRegistration)
            {
                MA_TextureGroup textureGroup = new MA_TextureGroup();
                textureGroup.name = tgr.name;
                quad.textureGroups.Add(textureGroup);
            }
        }