Portalgraph App Creation Tutorial
We explain how to create the simplest Portalgraph application.
Requirements
Gaming PC with a web camera
Installing Portalgraph runtime.
Unity 2019.4 or higher
Asset Usage
Creating the Project
If you haven't created a project yet, create a new project from Unity Hub. Please select the 3D template.

Importing Assets
Importing Portalgraph asset
From the menu, go to Assets → Import Package → Custom Package, select portalgraph.unitypackage, and import the assets into the project.

Input Settings
Currently, Portalgraph's key input processing uses the old Input Manager. Therefore, please set "Active Input Handling" to "Input Manager (Old)" or "Both" by going to the menu "Edit" → "Project Settings" → "Player" → "Other Settings."


Setting TextMesh Pro
Import the Essential Resources for TextMesh Pro. From the menu, go to Window → TextMeshPro → Import TMP Essential Resources and click to import.

Creating the Scene
In Unity, create a new scene and place the Portalgraph/Portalgraph prefab from the Project at coordinates (0, 0, 0). The coordinates of Portalgraph/ScreenCenter will represent the center point of the display screen. Additionally, place a Cube at coordinates (0, 0, 0) with a size of (0.1, 0.1, 0.1), making it smaller than your PC monitor.

Building
Click on Build Settings in the menu.

Click 'Add Open Scenes' to add the current scene to 'Scenes in Build', and then click 'Build' to build.

Execution
When you run the generated executable file, a 10 cm cube will be displayed on the screen. If this is your first time running Portalgraph, a screen size input window will appear—please enter the screen size.

With these steps, you will have a Portalgraph application that allows you to view in 3D from various angles.
Last updated