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?
Yup Cameracomponent has a static mesh and guess what is that? The Camera itself
At first if you check source code :
#if WITH_EDITORONLY_DATA
// The frustum component used to show visually where the camera field of view is
class UDrawFrustumComponent* DrawFrustum;
UPROPERTY(transient)
class UStaticMesh* CameraMesh;
// The camera mesh to show visually where the camera is placed
class UStaticMeshComponent* ProxyMeshComponent;
virtual void ResetProxyMeshTransform();
/** Ensure the proxy mesh is in the correct place */
void UpdateProxyMeshTransform();
#endif
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)
Yeah i’ve seen that it is the camera staticmesh if also looked into the engine code, still dident knwo how to intensionoly overlook all static meshes the engine spawns on components^^
But you tip withe bHiddenInGame looks like a good indicator for ignoring unintended meshes.