2D Toolkit Forum

2D Toolkit => Support => Topic started by: n0mad on February 06, 2012, 06:41:51 pm

Title: Error in Editor while reimporting a texture
Post by: n0mad on February 06, 2012, 06:41:51 pm
Hello,

Unity is giving several warning about DestroyImeediate when reimporting a texture for an already existing sprite in Editor.
It is asking to put "true" in DestroyImmediate if object destruction is required (to prevent asset destruction).

Concerned lines are in tk2dBaseSprite.cs :
line 300
line 304
line 306

Should be changed to :

DestroyImmediate(theObject, true);
Title: Re: Error in Editor while reimporting a texture
Post by: unikronsoftware on February 06, 2012, 07:06:32 pm
Thanks for that - we are just preparing the next maintenance release, I'll add that in.