question

dotung avatar image
dotung asked

Modify the player value from another player

I want to make an admin version. it can fix or change the value of virtual money of other players, is there any way that can be done. I use unity.

Player Dataunity3d
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Yes, there are such solutions. You can directly develop an administrative tool using Unity. And you needn’t log a player account in the administrative tool unless it’s necessary for you to access the client API sets.

If you want to make an administrative tool using Unity, firstly, as the documentation -- Installing the PlayFab SDK for Unity says you need to log your PlayFab developer account in the PlayFab Unity Editor Extension. Then you can navigate to the [PlayFab Unity Editor Extension]->[SETTINGS]->[API], check the options – [ENABLE ADMIN API], [ENABEL SERVER API] to enable the project to access the PlayFab admin API’s Unity SDK. Then you can access the SDK of admin API AddUserVirtualCurrency and SubtractUserVirtualCurrency in the Unity project to change the players’ VC.

Besides, for security, please don’t enable these above API options for client applications.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.