0
Answered

Can realVirtual built for web

zilong 2 weeks ago in realvirtual.io Starter and Professional updated by Support 1 week ago 5

When I choose the WebGl plat for build my unity projects which use realVirtual-io tool, the system has the follow error:

"Assets\realvirtual\private\Interfaces\SharedMemory\Editor\SharedMemoryInterfaceEditor.cs(9,26): error CS0246: The type or namespace name 'SharedMemoryInterface' could not be found (are you missing a using directive or an assembly reference?)"。

Answer

Answer
Answered

Hi,

it seems that you are using an old version. This issue has been solved. Some interfaces need to be deactivated before compiling because they are using functions which are not available in WebGL.


You should upgrade to the latest version or delete the interfaces (the full folder of it) which are not supported in WebGL. You can check the table on this page here: https://doc.realvirtual.io/advanced-topics/supported-platforms

Answer
Answered

Hi,

it seems that you are using an old version. This issue has been solved. Some interfaces need to be deactivated before compiling because they are using functions which are not available in WebGL.


You should upgrade to the latest version or delete the interfaces (the full folder of it) which are not supported in WebGL. You can check the table on this page here: https://doc.realvirtual.io/advanced-topics/supported-platforms

Thank you very much for your answer. There is another question after reading the page you just recommened.

When my project of digital twins built for web, does it means that the opcUA or modbus function would lost?

If that is true ,my project would not work at all because there is no any communication with hardware.Is my understanding correct?

It is technically impossible to communicate with Webbrowsers with non Websocket based protocols - which is the case for most of the industrial plcs protocols. There is no way making OPCUA communication directly working with a WebGL application.


So the realvirtual.io project build for webGL can just use for web animation?How can I deploy my twin projects on the web while communicating with actual hardware.Thanks a lot.

If you want to connect it with hardware you need to use a websocket based protocol. For Beckhoff PLCs you could use Twincat HMI (https://doc.realvirtual.io/components-and-scripts/interfaces/twincat-hmi) or you could use MQTT (which is also working over websocket: https://doc.realvirtual.io/components-and-scripts/interfaces/mqtt) or what we will release in the next 2 weeks is our own standard Websocket protocol (https://doc.realvirtual.io/components-and-scripts/interfaces/websocket).