Hello guys
This code works perfect on 4.10.2 but when i upgrade project to 4.12.2 it’s not working and i can’t compile:
.h
UFUNCTION() void TouchEnd(ETouchIndex::Type FingerIndex);
.cpp
OnInputTouchEnd.AddUniqueDynamic(this, &AMyGame_Tile::TouchEnd);
I found Solution :
void TouchEnd(ETouchIndex::Type FingerIndex, AActor* TouchedActor);
They changed the signatures for many things it seems with 4.12, and checking it quickly, it seems the OnInputTouchEnd is the same. Rather than 1 argument, it now takes two; (ETouchIndex::Type FingerIndex, UPrimitiveComponent* TouchedComponent).