@padmnabh wrote:
Hi,
It's strange thatsetLastFrameCallFunc
is working fine for me on iOS with capture by value my class variable but it's giving some garbage value on Android compile. I am not sure what type of issue exactly it is but if anyone familiar with this then let me know.CCLOG("Balance val in class %d", Balance);
selectAnimation->setLastFrameCallFunc(={
selectAnimation->clearLastFrameCallFunc();
CCLOG("balance Val in lambda %d", Balance);
});Here
Balance
is classint
variable andselectAnimation
iscocostudio::timeline::ActionTimeline*
WhereBalance
outside is proper but inner one could be anything from -123456 to 0 to 123456
Posts: 1
Participants: 1