Category Archives: GraphQL for Unity

GraphQL for Unity with WinCC Unified

In this post I will show how data from WinCC Unified V18 can be brought into Unity with the GraphQL for Unity Pro Asset. First you need WinCC Unified V18 with the GraphQL Server. The GraphQL server comes out of … Continue reading

Posted in GraphQL for Unity, WinCC Unified | Comments Off on GraphQL for Unity with WinCC Unified

AWS AppSync query with Cognito User Pool

If you want to use the Cognito User Pool, then you first have to get somehow the JSON Web Token (jwt). Once you have this token, then you should pass the token in the header within the “Authorization” key. Here … Continue reading

Posted in GraphQL for Unity | Comments Off on AWS AppSync query with Cognito User Pool

AWS AppSync Real-Time Support for GraphQL for Unity…

The Asset GraphQL for Unity version 1.5.2 works now with AWS AppSync realtime Websocket connections. You can now subscribe to real-time value changes via a GraphQL Websocket connection with AWS AppSync. This was not possible before, because AWS has implemented … Continue reading

Posted in Allgemein, GraphQL for Unity | Comments Off on AWS AppSync Real-Time Support for GraphQL for Unity…

Apollo 3.0 Websocket Protocol for GraphQL for Unity (V1.5.0)

The new version of GraphQL for Unity now supports the Apollo GraphQL Websocket Subprotocol “graphql_transport_ws”. So, it is now compatible with the Apollo 3.0 server, which does not support the former “graphql_ws” subprotocol anymore.

Posted in GraphQL for Unity | Comments Off on Apollo 3.0 Websocket Protocol for GraphQL for Unity (V1.5.0)

Sending OPC UA Data with GraphQL to Unity…

In a simple setup I have tested to send 2000 value changes per second from an OPC UA server to Unity with GraphQL, the Open-Source Frankenstein Automation Gateway, and the GraphQL for Unity Asset. And it could go up to … Continue reading

Posted in Frankenstein, GraphQL for Unity, Unity | Comments Off on Sending OPC UA Data with GraphQL to Unity…

GraphQL for Unity and how to set headers in code…

If you use the GraqhQL for Unity asset and if you want to set the headers on HTTP or Websockets in the code, then you must use the the GraphQLHttp or GraphQLWebsockets class. At the base class “GraphQL” there is … Continue reading

Posted in GraphQL for Unity | Tagged , | Comments Off on GraphQL for Unity and how to set headers in code…

GraphQL on Unity and Result Event for Data and Errors…

The GraphQL for Unity Asset can be used to execute GraphQL queries in Unity. The result is set on properties of Unity objects and there is also a Unity Event on the GraphQL Query Object where user-defined function of a … Continue reading

Posted in GraphQL for Unity | Tagged , | Comments Off on GraphQL on Unity and Result Event for Data and Errors…

GraphQL on Unity & Newtonsoft 12.0.0.0 Reference Error

The GraphQL for Unity Asset uses the Newtonsoft version which is built in newer version of Unity (2020+). If you get an error like this: Then you can try to remove NewtonSoft dependency from your project – if you have … Continue reading

Posted in GraphQL for Unity | Tagged , , , | Comments Off on GraphQL on Unity & Newtonsoft 12.0.0.0 Reference Error

GraphQL for Unity and execute a GraphQL Query in Unity with C# Code

With GraphQL for Unity you can execute GraphQL Queries in a Unity way with GameObjects. But with the asset you can also execute queries in Unity with C# code. Here is a simple example: Link the Connection variable to your … Continue reading

Posted in GraphQL for Unity | Comments Off on GraphQL for Unity and execute a GraphQL Query in Unity with C# Code