Hello Guest

Author Topic: Sprites Blanking/ Animation Editor  (Read 4085 times)

LilBitStudio

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Sprites Blanking/ Animation Editor
« on: April 19, 2015, 08:01:11 pm »
Using the latest Unity 5 (non-patch and latest patch), the sprites stop rendering in the scene when using the animation editor. Anyone else experiencing this issue?

A video demonstrating the issue:
https://www.dropbox.com/s/fw3fcysfwmjvwzp/tk2d-blanking.mp4?dl=0

I'm not getting any errors in the console. Have to play/stop the scene or reload before the sprites begin showing again. Makes creating animations next to impossible. Scott

fallingbrickwork

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Montague's Mount
Re: Sprites Blanking/ Animation Editor
« Reply #1 on: April 19, 2015, 10:58:33 pm »
I too am getting this, and you are right that animations are all but impossible. This never was an issue with 4.6.x for me.

- Matt.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprites Blanking/ Animation Editor
« Reply #2 on: April 19, 2015, 11:19:11 pm »
Managed to reproduce this. Try adding this to tk2dSprite.cs and see if it works better. It looks like Unity is resetting to prefab values every time you click something while recording...

Code: [Select]
void OnValidate()
{
MeshFilter meshFilter = GetComponent<MeshFilter>();
if (meshFilter != null)
{
meshFilter.sharedMesh = mesh;
}
}
« Last Edit: April 19, 2015, 11:23:09 pm by unikronsoftware »

LilBitStudio

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Sprites Blanking/ Animation Editor
« Reply #3 on: April 20, 2015, 01:05:26 am »
Works like a champ now. Thanks for the fast response! Scott