Open Baviecca opened 4 months ago
@Vinark117 I just discovered this bug as well.
First I created the BTR without an Atlas, and later I decided to add an Atlas for better performance, rendering etc. The moment you add the Atlas, opening the BTR-Editor breaks with the error message from the original post.
Drawing the tiles in the Unity Scene editor still works as expected.
Enabling Read/Write on the Sprite Atlas seems to fix the issue.
The existing error message is probably fine, just need to avoid the casting error:
public class EditorGridBase {
//...
public void FixMissingTexture(Texture2D tex) {
var assetImporter = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(tex));
if (assetImporter is TextureImporter texImporter) {
texImporter.isReadable = true;
EditorUtility.SetDirty(texImporter);
texImporter.SaveAndReimport();
}
}
}
Hi,
I have already created a rule tile based on a sprite sheet.
but i noticed that there were lines and gaps between the tiles and so i used a sprite atlas which fixed the gap issues perfectly.
but now i cant open the rule tile GUI at all and it throws me the following error: