CREATE YOUR WORLD
Players & Characters: Advanced
Top View Example
3min
by disabling the built in zepetocamera and using a custom camera, you can implement different camera perspectives step 1 setting the camera view adjust the custom camera's transform to configure the view at the desired angle in our guide, we used the main camera as our custom camera for top view, please refer to the settings below step 2 write a script implement the basic zepeto character creation code in your scene 📘 please refer to the following guide \[ creating a zepeto character docid k4o tkiw83wg jhy0isa ] create a script that disables the zepeto camera and creates a custom camera to follow the zepeto character select create > zepeto > typescript and rename it to topviewcontroller add the script to the topviewcontroller object write the following code to make the custom camera follow the character topviewcontroller import { camera, transform, vector3 } from 'unityengine'; import { spawninfo, zepetoplayers } from 'zepeto character controller'; import { zepetoscriptbehaviour } from 'zepeto script'; export default class topviewcontroller extends zepetoscriptbehaviour { public customcamera camera; private localplayertr transform; start() { zepetoplayers instance onaddedlocalplayer addlistener(() => { this localplayertr = zepetoplayers instance localplayer zepetoplayer character transform; // disable the zepeto camera zepetoplayers instance localplayer zepetocamera gameobject setactive(false); }); } lateupdate() { if(this localplayertr != null) { this customcamera transform position = new vector3(this localplayertr position x, this customcamera transform position y, this localplayertr position z); } } } connect the camera object to the inspector now try running it by pressing the \[▶︎(play)] button in the center of the screen you should see the existing zepetocamera disabled and the custom camera enabled