CameraComponent attaches StaticMesh to Actor
Hey in one function i collect all staticmeshcomponents of an actor to make stuff with their meshdata. now i noticed that the cameracamera component attaches an static mesh to the actor that can#t be seen in the details panel. I want to exclude this static mesh because i dont need it, but how can i tell that the searched component is from the camera or not?
tnhanks in advance
asked Feb 26 '18 at 11:57 AM in C++ Programming
Yup Cameracomponent has a static mesh and guess what is that? The Camera itself :) At first if you check source code :
That meshcomponent is valid only with editor and will not builded in final game ;) So dont worry! if you creating a game you will not get that component because that will be invalid.. (but maybe will be added to array, but you can check for nullptr)
Another method for check that is a cameramesh...
As seen here, Proxy mesh is hidden in game... i assume your meshes is visible in game, so you can remove hidden meshes from your meshlist ;)
or just get meshcomponent owner and if you can cast to cameracomponent... you need remove that
Follow this question
Once you sign in you will be able to subscribe for any updates here