Can't set static mesh

I created a static mesh component in C++, but when I go and look at it in the editor it is blank, and I can’t set anything. If I put it in the world, I can then see the mesh to apply, but when I click it there is almost no mesh’s available to pick from, and nothing in the list works if I attempt to set it, it goes back to nothing. I created a Skeletal mesh the exact same way that works with no problems which is why I am confused.

You will need to mark the ToolMesh variable in Tools.h with UPROPERTY(VisibleAnywhere)

it is marked in the header with a UPROPERTY as EditAnywhere

Have you tried closing the editor and recompile from Visual Studio? Unreal can get funky with macros like UPROPERTY() if you use Live Coding

Yep, tried that. The weird thing is. I see the mesh in the basic blueprint editor, but when I open it up full blueprint editor, I don’t see it anymore, but either way It doesn’t work for setting a mesh anyways as I said I could put it in the level and see it to set a mesh, but it would still not work.

I should clarify I see the mesh variable to set but that doesn’t work when it is placed in the world either anyways

Try recreating the Blueprint, Right Click->Asset Actions->Reload might help as well on the Blueprint asset

1 Like

deleting and re-creating fixed it, thankfully it was empty if there was a lot in there it would of been a huge pain in the ■■■, I might try reload next time.

Don’t know if this problem is actual for anyone, but if you’re facing it, check your folder path symbols. I’ve accidentally put “=” instead of “-” in my folder name and it didn’t let my model be set as a static mesh in a blueprint. Be cautious :slight_smile: