Skip to content

Commit

Permalink
Merge branch 'feature/spriteManagementRework' of https://github.com/C…
Browse files Browse the repository at this point in the history
…ammin/LDtkToUnity into feature/spriteManagementRework
  • Loading branch information
Cammin committed Aug 24, 2023
2 parents b9b4cff + ad500c8 commit 6dd80bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ private bool DeserializeAndAssign()

Profiler.BeginSample("GetTextureImporter");
string path = PathToTexture(assetPath);
if (_json.IsEmbedAtlas && path.IsNullOrEmpty())
{
Logger.LogError($"Tried to build the internal icons \"{AssetName}\", But the internal icons was not assigned in Unity's project settings. " +
$"You can add the texture by going to Edit > Project Settings > LDtk To Unity");
return false;
}

_srcTextureImporter = (TextureImporter)GetAtPath(path);
Profiler.EndSample();

Expand Down

This file was deleted.

0 comments on commit 6dd80bb

Please sign in to comment.