I created a static mesh from an fbx file I created from Blender.
Now, I want to add instances of the mesh to my scene from blueprint.
First, I created a new blueprint which extends Pawn (Since I want the meshes to receive input).
Then, I dragged the blueprint class to the scene and placed it at 0,0,0.
Now, I went to the blueprint and added an instance:
Just add the “Instanced Static Mesh Component” straight into your blueprint there with the “+ Add” button in the “My Blueprint” tab - then you can just drag that into your blueprint, and “SetStaticMesh” to that.
The “MeshActor” variable you’re trying to use there in your first example is null which is producing the error - to do it that way, you would need to set that as a valid actor first.
Also, doing it this way ends up creating an ISMC for each actor - to get the best performance for ISMs you should try and have a global ISMC. I have a plugin on the marketplace that handles all of that and makes it very easy - rdInst.
I think the interface for 5.2 of the engine is different than the version you are using. If you look at the My Blueprint area, it is listed under components and the type is Instanced Static Mesh Component: