Download

I created a new static mesh component at runtime, how do I add an onclicked event to it?

I have an actor blueprint that already contains a static mesh component with onClicked event working before runtime. I add new static mesh components dynamically to this actor at runtime. I want the new static mesh components to also have the same onClicked event as the static mesh component that is already on the actor before runtime.

I think the C++ equivalent to this is AddDynamic, but how do I do this in blueprint?

… I just learned about instanced static mesh components. I think that is what I need to use. Unfortunately there are no tutorials from unreal on it’s basic use.