2D Toolkit Forum

2D Toolkit => Support => Topic started by: LilBitStudio on April 19, 2015, 08:01:11 pm

Title: Sprites Blanking/ Animation Editor
Post by: LilBitStudio 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
Title: Re: Sprites Blanking/ Animation Editor
Post by: fallingbrickwork 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.
Title: Re: Sprites Blanking/ Animation Editor
Post by: unikronsoftware 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;
}
}
Title: Re: Sprites Blanking/ Animation Editor
Post by: LilBitStudio on April 20, 2015, 01:05:26 am
Works like a champ now. Thanks for the fast response! Scott