Teilen Sie Ihre Erfahrunge und Wünsche mit uns und anderen Usern!

Support 9 months ago

Can you turn  in the OPCUA interface  the DebugMode to true and send us the content of the console log?

Under review

OPCUA Interface - Error in activating session

Ernesto 10 months ago in OPCUA4Unity updated by Support 5 months ago 30

Dear all,

I'm having problems to connect to a remote OPC UA server using the OPCUA Interface Component.

I followed the "Connection troubleshouting" guidelines provided in "/game4automation/Documentation/opcua.html".

Configuring the OPC Server with "No security certificates and passwords" I could connect OPC Watch with the server (see Image):

Image 576

However, when I tried connecting through the Unity OPCUA Interface:

Image 577

I get the following error message:

OPCUA Interface - Error in activating session [BadUnknownResponse]
UnityEngine.Debug:LogError (object)
game4automation.OPCUA_Interface:Connect () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/OPCUA_Interface.cs:179)
game4automation.OPCUA_Interface:EditorImportNodes () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/OPCUA_Interface.cs:246)
game4automation.OPCUAInterfaceEditor:OnInspectorGUI () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/private/Editor/OPCUAInterfaceEditor.cs:20)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

As it can be seen in the last image, I'm using Unity 2021.3.2f1 Editor with Game4Automation Digital Twin Professional 2020.

Any idea of what I'm missing?

Thank you in advanced.

Support 5 months ago

Hi, I checked. I found an issue with reconnection, that is why I am attaching here a new script. This will be included in next release.


The disconnect problem and the PLCOutputBool can't be reproduced here on my computer with Simit.


Robodk version with game4automation professional or game4automation OPC UA

efrensilveyra 2 years ago in OPCUA4Unity updated by Support 2 years ago 1

Which version of robodk is compatible with game4automation opc ua or game4automation professional. I ask, because I want to communicate robodk 4.0 with game4automation professional.


When will Unity 2019 be supported?

Stan 3 years ago in OPCUA4Unity updated by Support 3 years ago 5


I was wondering when will OPC UA for Unity 2019 will be supported?

With kind regards,

Stan (Developer at Siemens)

Support 3 years ago

Hi, we have no tutorial about that.Even if Unity 2019 is not officially supported yet, you should be able to get it running. What is your problem. What kind of error messages do you have?

Under review

The data obtained by OPCUA interface is not updated for a long time

zhyi 3 days ago in OPCUA4Unity updated by Support 2 days ago 1

The OPCUA interface is used to obtain the data. At the beginning of the data update, the data change information can be obtained, but after a few minutes, the latest data cannot be obtained

Under review

OPCUA4Unity can't connect to opcua server with username and password

VBKsjjW 1 month ago in OPCUA4Unity updated by Support 1 month ago 5

On the OPCUA server, I logged in a user.

I set up the "OPCUA_Interface" component in Unity.

At that time, the "user name" and "password" set on the server were set to "OPCUA_Interface".

In this state, click the "Import nodes" button of "OPCUA_Interface".

Then the following error is displayed in the console.

「OPCUA Interface - Error in activating session [BadUnknownResponse]UnityEngine.Debug:LogError (object)」

Please tell me how to improve.

Support 1 month ago

Hi, I was able to connect with your type of OPCUA server. I will send you in a private message a beta. If successful it will be included in our next release (2021.15).


Application name on OPC UA port is not supported

Elio 2 months ago in OPCUA4Unity updated by Support 1 month ago 5


I am trying to connect a CS9 controller from Stäubli, but the OPC UA server is published on the following address: 


This last "/Staubli" data can not be written in the Port field or any other in OPC UA script, so the connection can not be stablished... It is not possible to modify the address in the controller, so I would like to know how can I define this address to properly connnect my server.

Support 1 month ago

This feature will be included in the next release (2021.14) which will be available about 17.02.2023


how to handle for the bad status of a node

eternalism 3 months ago in OPCUA4Unity updated by Support 3 months ago 5


i am making a app watching Devices through the "KEPServer for OPC".

so, i made subscribe multiple nodes.

then i expected my app work similar with "OPC Watch".

the result i did test, some nodes was often get bad status.

If any of the nodes is in a bad status, your plugin only disconnects from a server without handling any after works.

Or, If some nodes is bad status at starting app and first connection, the App was get "Not Answer".

On the contrary, the OPC Watch is continue updating under the same circumstance stably.


i make reconnecting when disconnected and trying to subscribe after checking that connection of a Bad nodes each seconds via ReadValue Method.

it seem to be not good way, i think...

what is the best strategy for handle a Bad status of node?


OPCUA update variables on connect

Edu 3 months ago in OPCUA4Unity updated by Support 3 months ago 3


I am working on a project to work with realvirtual as HMI with OPCUA4Unity communicating with plc omron.

Reading and writing work perfectly while everything is connected.

The problem is that whenever the unity application connects the values used to write from unity to the plc are overwritten by 0 instead of being updated with the values from the plc in the first place.


OPCUA plc input script don´t write to server opcua and plc

Edu 4 months ago in OPCUA4Unity updated by Support 4 months ago 13


I have managed to connect opcua4unity with the kepware server.

opcua4unity <-> kepserver <-> cp1l(omron) and opcwatch.

opcwatch connects perfectly with kepserver, reads and writes without problems.

opcua4unity connect ok, import nodes ok and read ok, but don't write values to server and plc.

attached photos.

Image 753

Image 754

I have also tried write value=on and subscribe value=off, but it doesn't work either.

Thank you.

Support 4 months ago

The issue is solved and will be released today in realvirtual.io Professional 2021.10.