07-24-2022, 01:53 PM
Hi
Can you tell me if the issue happens only in play mode?
To understand my question: When it comes to destroying game objects, Unity has two main destruction methods: Object.DestroyImmediate and Object.Destroy. Unfortunately, you can't simply use the one you want. You can use DestroyImmediate only in edit mode. So in play mode, you have to wait for the frame's end for the object to be effectively destroyed.
If you are curious, take a look at the implementation of conn.Delete(); It's saddening how complicated the code to destroy an object has to be
I hope this helped
Can you tell me if the issue happens only in play mode?
To understand my question: When it comes to destroying game objects, Unity has two main destruction methods: Object.DestroyImmediate and Object.Destroy. Unfortunately, you can't simply use the one you want. You can use DestroyImmediate only in edit mode. So in play mode, you have to wait for the frame's end for the object to be effectively destroyed.
If you are curious, take a look at the implementation of conn.Delete(); It's saddening how complicated the code to destroy an object has to be
I hope this helped
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.