hi,
I am trying to write code that will selectively execute for a specific target platform like android or iOS. I tried :
if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) {
my code;
}
however the above doesn’t work. I am using ts/js on creator.
thanks in advance!