Hello,
I try to get an OnClick Event to work in C++, but I realy struggle with it.
In MyGameMode I spawn some actors over a loop:
BrickPtr[i / 12][i % 12] = World->SpawnActor<ABrickActor>(Brick, GetSetBrickPosition(i), GetSetBrickRotation(i), SpawnParms);
And thats works fine.
But what I want is, when I click a brick in the game it should return his pointer. I don’t get this to work. Have someone an idea of how to do this?
If you need more input, please tell me