VisibleComponent = CreateDefaultSubobject(TEXT(“VisibleComponent”));
VisibleComponent->AttachTo(RootComponent);
…
VisibleComponent->OnClicked.AddDynamic(this, &ACrystal::Click);
What am i doing wrong? [Like here][1]
Did you defined your ACrystal::Click with a parameter?
If i’m not mistaken the onclicked has parameter.
gamer08
Make sure Click function signature is
Void Click(UPrimitiveComponent* component)