Quarter View Example
ZEPETO character controls can be customized to use Unity's New Input System instead of V-Pad.
These are examples of setting the Quarter View control.
Set the Camera as Quarter 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.
By defining a new InputAction for the Qiarter View, you can control character movements through touch screen.
Select Create > Input Actions and set the file name as QuarterViewActions.
- Move
- Action Type : Pass Through
- Move Trigger
- Action Type : Button
After creating Hierarchy > Create Empty Object, change the file name to QuarterViewController.
From QuarterViewController object, select Add Component and add the Player Input.
Drag and connect the QuarterView Actions that you just created to the Actions list.
Change the Behavoir to Invoke Unity Events.
Write a script that calculates the direction of the character's movement through touch screen input.
Select Create > ZEPETO > TypeScript and rename it QuarterView Controller.
Adds the script to the QuarterView Controller object.