Hello Guest

Author Topic: Error in Editor while reimporting a texture  (Read 7088 times)

n0mad

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 29
    • View Profile
Error in Editor while reimporting a texture
« 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);

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error in Editor while reimporting a texture
« Reply #1 on: February 06, 2012, 07:06:32 pm »
Thanks for that - we are just preparing the next maintenance release, I'll add that in.