Alienhead Posted July 11 Posted July 11 As discussed on discord this morning, I have a loaded prefab with a componet attached to it, the component is suppose to remove itself after the first update, this works fine for all non-prefabbed instances.. I call this at the end of the Update() function scene:RemoveEntity(self.entity) collectgarbage() But it does not remove. Mind you all other mdl's loaded not through a prefab work. You mentioned this 'may' be a bug. I also have this in my main loop --Garbage collection step collectgarbage() 1 Quote Alienhead Components and Software
Yue Posted July 11 Posted July 11 seff.entity = nil Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Solution Josh Posted July 30 Solution Posted July 30 I tried to recreate this situation from your description but the program successfully removed the entity from the scene, and it disappeared from view. Here is the project: Bug Report Test 2.zip Quote Let's build cool stuff and have fun.
Alienhead Posted July 30 Author Posted July 30 When I removed collectgarbage() from the main loop, this never happened again. 1 Quote Alienhead Components and Software
Josh Posted July 30 Posted July 30 That seems very strange. If you have any problem in the future and can provide an example for me to test, please let me know. 1 Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.