I'm wondering the best way to add user virtual currency.
Should i use Cloud Script or just use built-in function (AddVirtualCurrency) from Playfab Client API?
The reason the Client API call is de-activated by default is because the majority of games need their virtual currency to be secure from cheating. Turning on that API gives the client control over the VC balance, making it trivial for a hacker to cheat. So in general, we recommend only updating VC as a result of the PurchaseItem API call and server authoritative actions (like Cloud Script that you've written adequate cheat checks into).
2 People are following this question.