Reference static mesh from viewport to BP

I have an actor blueprint, it has a static mesh component inside (I then do some code like line tracing and spawning meshes). I want to be able to drag my BP into the world and select a static mesh already in the world to be the static mesh in my bp… Im sure I’ve seen an eyedropper tool before where this is possible but I can’t figure out how to implement it.


The static mesh component has the code applied to it, the SM is where i’d hoped to reference the static mesh already in the world because i could make the variable instance editable.


Was really hoping for an eyedropper tool here

1 Like

If you want to be able to choose a mesh in the world, then the variable type needs to be ‘static mesh actor reference’.

But then you can’t use it in the ‘set static mesh’ node.

You would need

setmesh

1 Like

I have changed SM to static mesh actor reference, but what are those specific nodes to connect? I can’t seem to connect from here

Always make new nodes by dragging

image

amazing thanks :D!!

1 Like