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 - Stanyard

Pages: [1]
1
Support / Possible Bug: Sprites disappearing and mesh filter empty
« on: May 15, 2013, 04:47:17 pm »
My team has been having an issue as of late with disappearing mesh filters and we're unsure if it's an issue with tk2d, Unity, or something we're goofing up. The issue arises if an object has a prefab and is a child of at least 4 parents in a particular order. After one run of the game the sprite will disappear.

Steps to reproduce in a new Unity project:

  • Import tk2d
  • Import a Texture
  • Create a collection
  • Add the texture as a sprite in that collection
  • Create a tk2d sprite object of that sprite
  • Create a prefab of that object
  • Duplicate the object 4 times
  • Parent the lowest sprite object in the hierarchy to the one above it
  • Then parent that object with the one above it
  • Repeat until you have a stack of 5 sprite objects with the lowest child having the other 4 as parents
  • Run the game.

The lowest child's mesh filter may disappear unless you unparent it and run the game again. The prefab also doesn't have a mesh filter, but that is expected behavior, right?

The order in which objects are parented seem to matter when triggering this bug, which is why I was so precise with the parenting instructions. In fact, if you reorder the child objects after the bug has occurred the bug will seemingly vanish. Keep reordering them and eventually it'll crop up again. It also doesn't have to be the same object duplicated. I tested with objects each having their own prefab with similar results. If one of the child objects in the line doesn't have a prefab it'll also fix the glitch on occasion.

tk2d version 1.92 + Patch 1
Unity version 4.1.2f1

Pages: [1]