void SaveMap() { var builder = new SpriteSheetMapBuilder(viewer.Loader); var spriteMap = builder.Build(); AssetDbRepo.CreateAssetInFolder(spriteMap, viewer.image.name, folder); }
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); } }
void CopyMap() { var asset = SpriteManStateUtility.CreateStateFromTemplate(stateViewer.state, sheetViewer.Loader.Sprites); AssetDbRepo.CreateAssetInFolder(asset, sheetViewer.image.name, folder); }