GuidesAPI Reference
Log In


๏ปฟ

Available starting from World Package 1.3.0.

These are examples of setting Side View control.

600
๏ปฟ

<br>

## STEP 1 : Camera View Setting

Set the camera to the side view. (This is an example, so please modify the camera setting according to your project.)

At this point, the camera's tag should be set to MainCamara.

605
๏ปฟ

<br>

## STEP 2 : InputAction Setting

By defining a new InputAction that fits the side view, you can control character movements through touch screen.

Select Create > Input Actions and name the file SideView Actions.

  • Move

    • Action Type : Pass Through

  • Move Trigger

    • Action Type : Button

894
๏ปฟ

<br>

Create Hierarchy > Create Empty Object and rename it to SideView Controller.

From SideViewController object, select Add Component and add the Player Input.

407
๏ปฟ

<br>

Drag and connect SideView Actions that you just created to the Actions list.

Change the Behavoir to Invoke Unity Events.

603
๏ปฟ

<br>

## STEP 3 : Scripting

Create a script to control the ZEPETO character to move from side to side, and have the camera follow,

Select Create > ZEPETO > TypeScript and rename it to SideView Controller.

Adds the script to the SideViewController object.

๏ปฟ

<br>

Please set up the camera on the inspector before running it.

605
๏ปฟ