Sample: Attachments
Project Overview
This Unity sample demonstrates how to work with Attachments in Annotations using the Unity Cloud Collaboration SDK. It provides a reference implementation for adding, displaying, and managing spatial markers (attachments) on 3D models, both locally and in the cloud.
NOTE: This example serves exclusively as a reference implementation to demonstrate SDK capabilities. The code presented herein is not production-ready and should not be deployed in any production environment without proper optimization and review.
Key Features
Spatial Marker Placement
Users can place markers on 3D models in the scene, with each marker storing position, orientation, and camera details.
Attachment Management
Markers (attachments) can be added, deleted and restored. The UI reflects the status of each marker (new, deleted, default).
Local & Cloud Storage
Markers can be saved locally or synced to the cloud.
Customizable Marker Appearance
Marker visuals and colors can be customized based on their status (selected, new, deleted).
Usage
Run the Sample Scene
- Open the AttachmentsSample.unity scene in the Scenes folder and run it.
- Select model and marker sources (local or cloud).
Interact with Markers
- Navigate the scene using keyboard and mouse controls.
- Place markers on the model using mouse.
- Select, delete, or restore markers via the UI panel.