- Home /
Question by
BallsMalone · Jun 13, 2018 at 03:36 AM ·
spritedestroyimagenot working
Objects Living Sprite when destroyed
I tried to use destroyimmediate to destroy an object but when I did this the sprite didn't disappear. The code of the object seemed to be destroyed. but the image of the sprite was left behind just sitting there in the same position.
Comment
Answer by bakir-omarov · Jun 13, 2018 at 08:17 AM
Object.DestroyImmediate has some problems, even in Unity Docs they are warning you. Wy you are not using just simple Object.Destroy ? It will destroy you object in the end of the frame.