Dear game4utomation team,
Recently we bought the Game4Automation Pro Asset in Unity, and so far we really like it.
We set up a simple project in Simit and managed to get the interface working with the shared memory solution.
For this we used the Update() method off Unity, now we would like to use a event based system to reduce the load on the system. In the PLCOutput class the event SignalChanged is available and we tried to implement this.
So in this example we would like to toggle a bool to change the color on a traffic light.
public class Verkeerslicht3 : NetworkBehaviour
public Material yellowMaterial;
public PLCOutputBool yellowEnable;
public MeshRenderer yellowMeshRenderer;
yellowEnable.SignalChanged += OnYellowEnableStateChange;
private void OnYellowEnableStateChange(Signal obj)
private void RpcSetGeel(bool state)
yellowMeshRenderer.material = state ? yellowMaterial : disabledMaterial;
But if we toggle the Bool in Simit the OnYellowEnableStateChange is not called.
Can you help with this?
Customer support service by UserEcho