1
Support / [Improvement] Extended message when having invalid mesh collider
« on: October 13, 2013, 12:16:24 pm »
Just as the subject states - we build a lot with 2D Sprites and Mesh Colliders. However, from time to time we get the error "Invalid mesh collider on sprite, please remove and try again." (don't know why, it's quite annoying). However, since we use hundreds of sprites, it's a game of guessing. Therefore, I would suggest to include the sprite name in the error message, to make it easier to find.
The patch would be quite simple:
File: tk2dBaseSprite.cs
Method: CreateCollider()
Replace
The patch would be quite simple:
File: tk2dBaseSprite.cs
Method: CreateCollider()
Replace
Code: [Select]
if (Application.isPlaying)
{
Debug.LogError("Invalid mesh collider on sprite, please remove and try again.");
}with Code: [Select]
if (Application.isPlaying)
{
Debug.LogError("Invalid mesh collider on sprite " + sprite.name + ", please remove and try again.");
}