realvirtual.io
  • Building Digital Twins with Unity and realvirtual.io
  • Basics
    • Installation
    • Demo Model
      • Old Demo Model
    • Editor User Interface
      • Hierarchy Window
      • 3D Views
      • Quick Edit
      • Move Pivot Points (Pro)
      • Selection Window (Pro)
      • Material Window (Pro)
      • Measurement (Pro)
      • Kinematic Tool (Pro)
      • Model Checker
    • Runtime UI
      • Group Manager
      • Debug Console
      • Responsiveness
      • Runtime Persistence
    • Importing and exporting
    • Folder structure
    • Tutorial
    • Physics
    • CAD import (Pro)
      • CADLink (Pro)
      • CAD Checker (Pro)
      • CAD Updater (Pro)
    • Reusable Components (Prefabs)
    • Cadenas parts4cad
    • Publishing the Digital Twin
    • Revision management
  • News
  • Login & Download Updates (Pro)
  • Components & Scripts
    • Realvirtual
      • Environment Controller
    • MU, Source and Sink
      • Source
      • Sink
    • Motion and Kinematic
      • Drive
      • Kinematic
      • Group
      • Joint
      • CAM
      • TransportSurface
      • Guided Transport
      • Drive behavior
      • Chain
      • Chain element
      • Motion for developers
    • Sensors
      • Sensor
      • Measure
      • MeasureRaycast
    • Picking and Placing MUs
      • Grip
      • Gripper
      • Fixer
      • Pattern
    • Changing MUs
      • MaterialChanger
      • PartChanger
      • Cutter
    • Scene Interaction
      • 3D Buttons
      • Screen Overlay Buttons
      • Scene Selectables
      • Lamp
      • Interact3D
      • UI components
      • HMI components (Pro)
        • Start your own HMI
        • HMI Tab
        • HMI DropDown
        • HMI Puschbutton
        • HMI Switch
        • HMI Value
        • HMI Text
        • HMI Slider
        • HMI Message
        • HMI Marker
      • ModelZoo (Pro)
    • Interfaces
      • Interface Tools
        • Signal Manager
        • Signal Importer Exporter
        • Signal Catcher
        • OnValueChangedReconnect
      • Signal Importer / Exporter
      • ABB RobotStudio (Pro)
      • Denso Robotics (Pro)
      • EthernetIP (Pro)
      • Fanuc (Pro)
      • FMI
      • Igus Rebel
      • MQTT (Pro)
      • Modbus (Pro)
      • OPCUA (Pro)
      • PLCSIM Advanced (Pro)
      • RoboDK (Pro)
      • RFSuite (Pro)
      • SEW SimInterface (Pro)
      • Siemens Simit Interface (Pro)
      • Simit Shared Memory (Pro)
      • Simulink (Pro)
      • S7 TCP
      • TwinCAT (Pro)
      • TwinCAT HMI (Pro)
      • UDP (Pro)
      • Universal Robots (Pro)
      • Wandelbots Nova (Pro)
      • Websocket (Pro)
      • Windmod Y200 (Pro)
      • Custom Interfaces
    • Performance Tools
      • Combine Meshes (Pro)
      • Create Prefab (Pro)
      • Hierarchy Cleanup (Pro)
      • Mesh Optimizer (Pro)
      • Performance Optimizer (Pro)
    • Defining Logic
      • Unity Scripting
      • Behavior Graph
      • Logicsteps
      • Unity Visual Scripting
      • Recorder
    • Robot Inverse Kinematics (Pro)
    • Volume Tracking (Pro)
  • Multiplayer (Pro)
  • Extensions
    • ModelZoo
      • Beckhoff TwinCAT
      • Siemens S7
      • Denso Cobotta 1300
      • Wandelbots Nova Fanuc CRX
      • Universal Robots UR10
      • Fanuc Roboguide
    • realvirtual.io AIBuilder
      • realvirtual.io AI Builder Overview
      • Generate AI Training Data
      • AI Training
      • Testing AI in a Digital Twin
      • Deploying the AI
    • realvirtual.io Simulation
      • Conveyor Library
      • Path System
        • Path finding
        • Line
        • Curve
        • Workstation
        • Catcher
        • Pathmover
    • realvirtual.io Industrial Metaverse
      • Setup Guide
      • VR Modules
      • AR Modules
      • Multiuser
    • AGX Physics
    • VR Builder
    • CMC ViewR
  • Advanced Topics
    • Render Pipelines
    • Mixed Reality with Meta Quest3
    • Upgrade Guide
      • Upgrade to 2022
    • Open Digital Twin Interface
    • Usefull Addons
    • Improving Performance
    • Supported Platforms
    • Compiler Defines
    • For Developers
      • Important Classes and Interfaces
      • Assembly Definitions
      • Starting your development
      • Class documentation
      • realvirtual Init Sequence
      • realvirtualBehavior Lifetime Methods
      • Testing
    • Newtonsoft JSON
    • Troubleshooting
  • Release Notes
  • AI Digital Twin Assistant (GPT4)
  • License Conditions
Powered by GitBook
On this page
  • Building Windows
  • Building WebGL
  • WebGL Template (realvirtual Professional)
Edit on GitHub
  1. Basics

Publishing the Digital Twin

Distributing the Digital Twin to partners, customers and prospects

PreviousCadenas parts4cadNextRevision management

Last updated 17 days ago

You can run your Digital Twin simulation model in the Unity Editor by clicking the "Play" button. However, this requires the Unity Editor to be installed. Publishing the Digital Twin allows you to share it with customers, partners, and prospects without having the Unity Editor installed or the need of any license. Like publishing a "game".

For publishing you first need to define your build settings. Build settings is opened by File > Build Settings...

In Build settings the destination platform (WebGL, Windows, Linux, Mac, Androi, iOS and so on) and the scene (the model) which should be included into build needs to be defined.

After selecting Build you are asked to define the destination folder of your build.

For some destination platforms you need to install additional packages to your Unity installation.

There are some limitations, specially with some interfaces, for some destination platforms, which are described in Supported Platforms

Please also check Unity Documentation for more information about making a build:

Building Windows

For building on Windows the following settings are recommended in Player Settings.

Mono complies much faster than IL2CPP.

Please also make sure, that Scripting Define Symbols are set as needed for your installation (see Compiler Defines)

Building WebGL

WebGL build needs to be done with IL2CPP and the Windows DLLs which are used in some interfaces can't be used any more (and they don't make any sense because only way to communicate from a browser is Websocket). For Building WebGL you need to delete following folders if they are in your project:

  • CADLink

  • SpaceNavigator

  • All Interfaces (besides MQTT and TwinCATHMI - these both are the only ones which are possible with WebGL)

  • parts4cad

  • RobotIK

When building to WebGL the rotation of the scene is done with the left mouse button and not the middle mouse button because a Webbrowsers have a different mouse button behavior.

For building to WebGL you need to do the following changes.

  1. Set WebGL in Build Settings:

2. Make sure, that in Plaer Settings Scripting Define Symbols you have the same settings as for Windows (e.g. GAME4AUTOMATION and GAME4AUTOMATION_PROFESSIONAL).

3. Disable Auto Graphics API in Player Settings to use exclusively WebGL2 (recommended):

4. In Publishing Settings set Decompression Fallback - this prevents problems with some Webservers.

WebGL builds take sometimes a very long time (up to 1 hour), specially for the first build.

As soon as the build is successfull Unity starts automatically a temporary WebServer and opens your browser with your WebGL build.

For running the WebGL build you need to copy the result of the build (the content of your build folder) to a Webserver.

WebGL Template (realvirtual Professional)

Enhance your Unity WebGL projects with the realvirtual WebGL Template, offering a full-screen, responsive design for an improved user experience compared to the standard Unity WebGL Template.

Installation Steps

  1. Locate Template Files: Find the template files in your Unity project at:

    Assets/realvirtual/Professional/WebGLTemplate/realvirtual
  2. Copy Template Files: Copy these files.

  3. Paste into WebGLTemplates: Paste the copied files into:

    Assets/WebGLTemplates/realvirtual

Setting the Template

  1. Open Unity.

  2. Go to Edit > Project Settings.

  3. In Player settings, find Resolution and Presentation.

  4. Choose the realvirtual template from the "Template" dropdown menu.

  5. Save your changes.

© 2025 realvirtual GmbH - All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including printing, saving, photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher.

https://realvirtual.io
LogoUnity - Manual: Windows
Build settings
Mono and .Net Framework player build settings
Setting WebGL in Build Settings