CREATE YOUR WORLD
Multiplay

Setting in Private Room runtime

4min

You can change the multiplayer Room attribute at runtime.

  • Please create the server code index.ts Sandbox.



Function definition





SetPrivate(isPrivate : boolean) : Promise

- True : Set to private room - False : Set to public room

📘 Please refer to the following guide. [ZEPETO.Multiplay(Server) API]

Example of use

TypeScript


👍 Difference between lock and private functions

The locked multiplayer room is not visible in the ZEPETO room list and cannot be entered by invitation.

  • Private multiplayer rooms are not shown in the list of ZEPETO rooms, but invitations are acceptable.