Hello,
I have a sprite which I added a polygon type collision.
Creating the sprite through unity editor, seems to be working ok. However, if I instantiate the game object through code:
GameObject go = new GameObject();
tk2dSprite sprite = go.AddComponent<tk2dSprite>();
sprite.SetSprite(spriteCollection, spriteName);
Then the meshcollider is not being created.
Weird thing that other sprites that use box trimmed or box custom works normally even when instantiated directly on code (using the same template as above.
Is that a bug? or Am I doing something wrong?
Thank you.