How to publish an interactive Unity AR piece to Meadow

Meadow is a Unity-first AR publishing platform with a shared iOS/Android viewer app that supports Google Geospatial VPS and Cloud Anchors—so you can deploy interactive AR without building your own app.

Intermediate2-4 hoursUnity Required

Prerequisites

  • Unity 2022.3 LTS or newer
  • Basic Unity development experience
  • Meadow developer account (free registration)
  • Android/iOS device for testing

Step-by-Step Guide

1

Install Meadow Unity SDK

Download and import the Meadow Unity package from the Unity Asset Store or GitHub. The SDK includes all necessary components for AR functionality and Meadow platform integration.

// Download from: https://meadow.space/download
// Or via Unity Package Manager:
// Window > Package Manager > Add package from git URL:
// https://github.com/meadowspace/meadow-unity-sdk.git
2

Set up Your Unity Scene

Create a new Unity scene and add the Meadow AR Session prefab. Configure your scene with AR Camera, AR Session Origin, and Meadow components.

// Add these components to your scene:
// 1. MeadowARSession (prefab)
// 2. MeadowLocationManager
// 3. MeadowExperienceManager
// 4. Your interactive content
3

Configure Spatial Anchoring

Choose between VPS anchoring for outdoor experiences or Cloud Anchors for indoor exhibits. Set up anchor points where your AR content will appear.

// For VPS outdoor anchoring:
MeadowVPSAnchor vpsAnchor = gameObject.AddComponent<MeadowVPSAnchor>();
vpsAnchor.SetCoordinates(latitude, longitude, altitude);

// For Cloud Anchors indoor:
MeadowCloudAnchor cloudAnchor = gameObject.AddComponent<MeadowCloudAnchor>();
4

Add Interactivity

Use Unity's Visual Scripting to create interactive behaviors. Meadow supports full Unity functionality including physics, animations, and networking.

// Example interaction script:
public class InteractiveObject : MonoBehaviour
{
    public void OnTap()
    {
        // Your interaction logic
        StartCoroutine(AnimateObject());
        MeadowAnalytics.TrackInteraction("object_tapped");
    }
}
5

Test Your Experience

Use Meadow's test mode to preview your AR experience in the Unity editor and on device. Test spatial tracking, interactions, and performance.

// Enable test mode in MeadowSettings:
MeadowSettings.TestMode = true;

// Test different scenarios:
// - Indoor/outdoor environments
// - Various lighting conditions
// - Different device orientations
6

Build and Publish

Build your experience using Meadow's build pipeline. Upload to the Meadow platform where users can discover and experience your AR creation.

// Build for Meadow platform:
// 1. File > Build Settings
// 2. Select "Meadow Platform" target
// 3. Configure experience metadata
// 4. Click "Build and Upload to Meadow"

Need Help?

Join our community for technical support and collaboration with other Unity AR developers.