Hello Guest

Author Topic: Invalid mesh collider on sprite  (Read 4087 times)

drswoboda

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Invalid mesh collider on sprite
« on: April 12, 2014, 05:21:03 pm »
Hello,

I have a warning error that keeps popping up. I fix the error and then a few builds later it's back. I'm not sure what I am doing wrong here?

Any ideas on this?
-David

Code: [Select]
Invalid mesh collider on sprite 'Top', please remove and try again.
UnityEngine.Debug:LogError(Object)
tk2dBaseSprite:CreateCollider() (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dBaseSprite.cs:751)
tk2dSprite:Build() (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dSprite.cs:101)
tk2dSprite:Awake() (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dSprite.cs:37)
UnityEngine.Object:Instantiate(Object)
GenericObjectPooler:GetPooledObject() (at Assets/!2DToolkit/_Scripts/ObjectPooling/GenericObjectPooler.cs:43)
GenericGenerateOBS_pool:Generate() (at Assets/!2DToolkit/_Scripts/ObjectPooling/GenericGenerateOBS_pool.cs:31)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Invalid mesh collider on sprite
« Reply #1 on: April 14, 2014, 05:08:22 am »
It looks like it has both a mesh collider and a box collider which isn't allowed with 3D physics. Try removing both and then press play + stop once to have it regenerate the correct one. That should help.