Ejemplo n.º 1
0
        void SaveMap()
        {
            var builder   = new SpriteSheetMapBuilder(viewer.Loader);
            var spriteMap = builder.Build();

            AssetDbRepo.CreateAssetInFolder(spriteMap, viewer.image.name, folder);
        }
Ejemplo n.º 2
0
        void SaveMap()
        {
            var manager = viewer.state;

            if (manager != null)
            {
                var path = AssetDatabase.GetAssetPath(folder);

                var state = ScriptableObject.CreateInstance <SpriteManagerState>();
                state.CopyFrom(manager);

                AssetDbRepo.CreateAssetInFolder(state, manager.name, folder);
            }
        }
Ejemplo n.º 3
0
        void CopyMap()
        {
            var asset = SpriteManStateUtility.CreateStateFromTemplate(stateViewer.state, sheetViewer.Loader.Sprites);

            AssetDbRepo.CreateAssetInFolder(asset, sheetViewer.image.name, folder);
        }