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

Support 6 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 7 months ago in OPCUA4Unity updated by Support 2 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 2 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?


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

Edu 4 weeks ago in OPCUA4Unity updated by Support 3 weeks 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 3 weeks ago

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


[Question] OPC-UA Realtime Interface Graphic Stuttering Issue

Reverse Kim 2 months ago in OPCUA4Unity updated by Support 2 months ago 2
Youtube video

Hi, I bought realvirtual,io for interface with Factory Robot to build Digital Twin

I followed realvirtual.io Youtube Guideline and build up Robot and Drive and successfully interface with our OPC-UA Server

but, there are some Graphical Issue in Robot.

the Drive Follow Position Module can get Tag Data, but some Robot motions skip in the Field.

How can I solve those Issue? Please Help.


Problems in OPCUA4Unity Output

Janik Tian 6 months ago in OPCUA4Unity updated by Support 6 months ago 4

Servus, I'm using OPAUA Interface for my first Program, but there are some problems with communication when i write int and float format variables in my PLCs.  In Figure 3 and 4 I try to write INT values to "robotArmSuccess" but in OPC Server the corresponding values are not changed. Then I read Demo of OPCUA and modify my Program with the function WriteNodeValue(NodeId, value) , it did not work in PLC Server, according to figure 1 and 2 . Could you please give me some Guidance for this situation?  

Image 595

Figure 1

Image 596

Figure 2

Image 593

Figure 3

Image 594

Figure 4


Driver_Simple script does not accept OPC UA variable nodes

Ernesto 7 months ago in OPCUA4Unity updated 5 months ago 17

Dear developers,

I was trying to connect a custom Game4Automation Scene to a PLC through OPCUA Interface.

I followed the instructions from this tutorial:

Youtube video

The OPCUAInterface is updating the nodes correctly:

Image 582

However, when I tried to link a bool variable node from the OPCUAInterface to the Driver_Simple interface dragging it and droping it into the forward variable, it wasn't accepted (the forbiden symbol appeared).

Image 583

If I use the PLC signal component I'm able to link the component without problems.

I'm using Unity 2021.3.2f1 Editor and the game4automation-Professional-2019.13 package (OPCUAInterface is not working in the latest version of G4A, see https://forum.game4automation.com/en/communities/1/topics/376-opcua-interface-error-in-activating-session).

Any idea of what am I doing wrong?

Thank you in advance!

Support 5 months ago

Hi Ernesto,

I am able to connect and to import the signals (even if I am not able to connect to the PLC because I don't have same setup).

Don't know where the problem is. Just for beeing sure I will send you again the latest code of the interface via mail. Please also check in Kepserver if you enabled anonymous login.


I can connect through OPCWATCH but when I try through G4A it doesn't work

Juliano Cortes 7 months ago in OPCUA4Unity updated 7 months ago 1
See the connection via OPCwatch
Image 578

When I try to import the nodes into UNITY see the errors. And I already tried ANONYMOUS SECURITUY POLICY 0.1 AND 2.
Image 579

Under review

OPCUA problems - doesnt Import any In-/Outputs

AndreS2 7 months ago in OPCUA4Unity updated by Support 7 months ago 5

Hey there,

first of all - the example Project provided with the Unified Automation OPCUA Server is working fine. 

Im using the latest Release of G4A which is 2020.16-beta-1123 and Unity Version 2020.3.19

The PLC is created in TIA Portal v17 which sends it to PLCSimAdvanced v4.0.

(Yes(!) i know i could use the PLCSimAdvanced Interface, but for now i have to stick to the OPCUA Interface)

This is what OPC Watch looks like when connected to my PLC which has an OPCUA Server:

Image 565

You can see the Inputs and Outputs. 

When trying to import these Nodes into Unity with the G4A Framework im getting

Image 566

In the "PLCOutputBool.cs", when changing from

Image 567


Image 568

The import finishes with no more errors.

Image 569

But now looking into Unitys Hierarchy, no In-/Outputs where generated.(No Dropdown available at the Input & Ouput Gameobject)

Image 570

Even then whole "PLC_1" Node is missing in Unity.

Image 571

Support 7 months ago


can you share your PLCSIM-Advanced project (PLCSIMAdvanced 3.0)? Can be a simlified one with just the inputs and outputs.