Hide and Show ZEPETO Character Appearance
You can disable the ZEPETO Character's Renderer to make it invisible to the camera.
The following is an example code to hide and show the character's appearance with the press of a button.
1) Create a Hierarchy > Create Empty Object and rename it to HideShowCharacter.
2) Create Project > Create > ZEPETO > TypeScript and rename it to HideShowCharacter.
3) Add a script to the HideShowCharacter object.
4) Write the sample script as shown below.
5) Use Canvas > Button to add each button to the screen and assign them to the script inspector.
6) Press the [▶︎(play)] button to run it.
In addition to disabling the character's Renderer, you can also hide and show the character's appearance.
This is done by utilizing the Culling Mask in the ZEPETO Camera.
The Culling Mask allows you to treat specific layers as invisible.
When a ZEPETO character is created, there are no Layers set by default.
The following example code shows how to make a specific layer invisible in the ZEPETO Camera, and then change the layer of the ZEPETO character at the click of a button to hide and show it.