From 40d6bcc63e41c8a9e19bb424f74767b564792060 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 24 Feb 2024 17:38:22 -0800 Subject: [PATCH] comment --- .../LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs index b1cff891d..76cb68920 100644 --- a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs +++ b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs @@ -552,6 +552,10 @@ private static string PathToTexture(string assetPath, TilesetDefinition def = nu return path; } + //todo really look at this function and understand if it's truly nessesary. + //experimnent with using it on and off and checking how builds behave as a result. + //will they log like this: https://forum.unity.com/threads/sprite-outline-generation-failed-could-not-read-texture-pixel-data-when-building-the-game.861775/ + private void AddOffsetToPhysicsShape(Sprite spr, int i) { Profiler.BeginSample("GetSpriteData");