CREATE YOUR WORLD
Social

User Information

4min

Searching User Information

User information can be searched using the ZepetoWorldHelper.GetUserInfo function. The callback function included in the UserID such as the time of completion, time of error occurrence, and string array is passed as an argument.

The following is an example of calling the ZepetoWorldHelper.GetUserInfo function.

TypeScript


The following is a full example code for searching user information.

Please change "userId_1","userId_2" values to real userid values when using the example code.

JS

Document image


Importing User Profile Image

Use the ZepetoWorldHelper.GetProfileTexture function to load a user's profile photo.

The callback function from the time of completion to time of error occurrence and UserId is passed as an argument.



The following is an example code for calling the ZepetoWorldHelper.GetProfileTexture function.

TypeScript


The following is an example code that imports a user's profile photo.

TypeScript

Document image