Download

Create generic blueprint for multiple meshes

I am new to UE4 game development, but I am try to achieve something simple, but not sure what the right method is.

I have multiple meshes in my level, each mesh is a different shape. I want to add an onClick event to each mesh that populates a variable indicating which shape was clicked.

The blueprint that handles the on click will be the same for each mesh. I know I can create a blueprint and add a mesh to it, but how can I create a “generic” blueprint and add it to any of my meshes? TIA for any suggestions.

Could you try to create a blueprint actor add the mesh but leave it blank add all the variables you need then create child blueprints of that you can set your mesh and your on clicked events in the child blueprints