Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ThomasH

Pages: [1]
1
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
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.");
}


2
Support / Error while creating collection
« on: May 27, 2013, 03:52:52 pm »
I want to create a sprite collection spanning over 4 atlasses containing 4 images of 1920x1200. When committing, I get the following error:

Code: [Select]
MissingReferenceException: The object of type 'Texture2D' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Texture.get_height () (at C:/BuildAgent/work/7535de4ca26c26ac/Runtime/ExportGenerated/Editor/Graphics.cs:683)
tk2dSpriteCollectionBuilder.Rebuild (.tk2dSpriteCollection gen) (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/tk2dSpriteCollectionBuilder.cs:923)
tk2dSpriteCollectionEditorPopup.Commit () (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:437)
tk2dSpriteCollectionEditorPopup.DrawToolbar () (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:427)
tk2dSpriteCollectionEditorPopup.OnGUI () (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:826)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/b59ae78cff80e584/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Any help appreciated  ;)

Pages: [1]