CREATE YOUR WORLD
Players & Characters: Advanced

Side View Example

5min

These are examples of setting Side View control.

Document image




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.

Document image




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
Document image




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

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

Document image




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

Change the Behavoir to Invoke Unity Events.

Document image




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.

TypeScript




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

Document image