# Xense Editor

A Unity project for edit and preview 3D Content for Xense AR SDK

## Getting Started

### Requirements:
- Unity Hub with Unity Editor (version 6000.44.1f LTS or higher recommended)

### Setup Instructions:

1. Clone or download this repository
2. Open Unity Hub and click "Add".
3. Navigate to the project directory and open it.
4. Unity will load and import assets automatically.
5. Open MegaEditor scene at **Assets\Scenes**

## Features

- Add, Edit, Delete 3D Content and Navigation Location
- Preview Exist 3D Content with simulated Camera
- Create and Load Asset Bundle

## How to Use
### 1. Log in to Xense AR

* Select **XenseARBlockViewer** in **Hierachy** tab
* Enter your account and password, click "Log In"

### 2. Import datas
- Load Block Data:
  - Select **XenseARBlockViewer** in **Hierachy** tab
  - Click "Load Block List". A list of data blocks will appear below
  - Select block you want to edit and click "Import Mesh"
  - Select from the toolbar **ARWorld** and select **Load All**
- Load World Data:
  - Select **XenseARBlocks\YourDataBlock**, a World Datas list will appear
  - Copy the ID from the world data you want to edit in the list, paste it in the World ID field on top
  - Click "Load World Data"

Once the 3D content has loaded, you can now start editing.

### Note
- Before build any asset bundle, please:
  - Select from the toolbar **Asset Bundle > Build Target** and select **Android**, **iOS**, **Window (Also used for Unity Window Editor)**.
  - Select from the toolbar **Asset Bundle > Set Recomment Graphic API**

## Contact

For questions or support, open an issue or contact us at thaodtp9@viettel.com.vn
