SpiderPig Posted January 8 Share Posted January 8 I've probably asked this before but just want to check... should a parent keep its child alive? This is the only way to delete an entity with a parent. entity->SetParent(nullptr); entity = nullptr; Quote Link to comment Share on other sites More sharing options...
IceBurger Posted January 8 Share Posted January 8 I would hope so 🤣 2 Quote i now hate love C++ Beeeeeeeeeeeeeep~~This is a test of the emergency signature system~~Beeeeeeeeeeeeeep RX 6800XT | i5-13600KF | 32GB DDR5 | 1440p is perfect Link to comment Share on other sites More sharing options...
reepblue Posted January 8 Share Posted January 8 This makes sense but I understand why this would be annoying. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Solution Josh Posted January 8 Solution Share Posted January 8 Yes, this is the correct behavior. Otherwise if you loaded a model, all the limbs would get deleted automatically unless you created a variable for each object in the hierarchy. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
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.