MarKli Posted May 17, 2023 Posted May 17, 2023 Hello, I'm new here. Wanted to ask mall how to delete an added component. Since I have a problem because I added it to a model. I have a short example here of how it freezes: Meshes[0] = LoadModel(curWorld, FileModel1); auto comp = Meshes[0]->AddComponent<Mover>(); comp->rotationspeed.y = 5; Meshes[0]->Clear(); Meshes[0] = LoadModel(curWorld, FileModel2); I clean the model with the Clear() command, don't I? It works without the componet. Or is that a bug? Quote
Solution Josh Posted May 19, 2023 Solution Posted May 19, 2023 There is currently no mechanism to remove a component. Maybe you just want to disable it? Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Josh Posted May 19, 2023 Posted May 19, 2023 Also, welcome to the glorious future. 😁 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
MarKli Posted May 20, 2023 Author Posted May 20, 2023 I have it without component at the moment, will only use it for certain things. But in the future it would be nice to know how to disable a component. I have one more question, does SetMappingScale not work at the moment? Quote
Josh Posted May 20, 2023 Posted May 20, 2023 I think that is something I have not made a final decision yet on how it should work... Quote My job is to make tools you love, with the features you want, and performance you can't live without.
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.