Skip to content

Extending & Developing

Use the development resources below for detailed guides and API references.

Code can plug into the viewer at three levels of reach.

Where your own code plugs in The realvirtual viewer core can be extended in three places: a script in the model, which travels with the GLB and reaches the node it sits on; project code named by a document's scriptRef, which unloads when you switch the document; and extensions in an extensions folder, which load at startup and reach every project of the installation. Outside the viewer, your own tools use the CONNECT REST and WebSocket API, and the rv-ODT specification describes the open twin format. realvirtual viewercore, components, plugin APIopen source (AGPL) Script in the modelsandboxed JavaScript,travels with the GLB Project codeTypeScript, named by scriptRef,unloads with the document Extensionsextensions/ folder, every project,untouched by updates Your tools and HMIsCONNECT REST and WebSocket API, port 5100 Open twin formatrv-ODT specification and schema
Code runs in the viewer at three levels of reach; tools and other software connect from outside.

realvirtual can be extended with TypeScript behaviors, viewer integrations, and project-specific UI. Start with the open-source realvirtual repository to inspect the current code and extension patterns. Dedicated scripting guides will be added to this documentation as those public APIs mature.

Code that all your projects should share belongs in customer extensions: your own plugins and components in an extensions/ folder that updates never touch.

See document references for how a document identifies its code, gateway configuration and knowledge file. The page also explains the trust prompt shown before project code runs.

Read the rv-ODT specification when building tools that read, validate, or write self-describing industrial digital twins. The synchronized documentation links to the canonical schema, license, and conformance suite.

Use the realvirtual developer documentation for Unity framework lifecycle, important classes and interfaces, assembly definitions, and testing guidance. These topics remain in the Unity documentation so there is one maintained source.

Open the realvirtual C# API reference for generated namespace, class, method, and property documentation.

The realvirtual viewer core is available under the AGPL-3.0 license in the game4automation/realvirtual-WEB repository. Use it to evaluate the viewer, build open-source extensions, or contribute improvements.

Commercial customers get the source on git.realvirtual.io in one of two ways. Standard customers receive read access to the shared commercial source repository. Development customers receive a private project repository containing their project and the commercial components. Contact realvirtual to request access; the setup details arrive by email. Getting started as a commercial customer walks you through the first steps.