Forum begins after the advertisement:
-
::so, i have some trouble in leveling up a weapon or passive weapon. if i use a
if(choosenWeaponUpgrade.weaponData.NextLevelPrefab)
{
DisableUpgradeUI(upgradeOption);
break;
}
my weapon and passive item can’t upgrade to next level, can anyone help me? or someone have a same trouble with me? thanks
::Hi Septian, do you see any errors on your Console when the upgrade fails?
::no, it not have error appear in console
::Hi Septian, can you make a recording of the error happening and post it here? Make sure to capture the Console window in your recording as well.
Here’s a guide on how to do this: https://blog.terresquall.com/community/topic/how-to-post-images-on-this-forum/
::View post on imgur.com
View post on imgur.com
int the second try, i’m not use the if code statement in my first post, and the upgrade is run normally, but can’t remove the UpgradeUI
::Hi Septian, you missed a !
in your code:
if(!choosenWeaponUpgrade.weaponData.NextLevelPrefab)
{
DisableUpgradeUI(upgradeOption);
break;
}
::ohh i see, sorry for the my inaccuracy 😅🙏
Advertisement below: