docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    References

    Annotation Management API

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)